Adding CLASSES to images and links

Permalink Browser Info Environment
Quick question because I just botched two Designer Content blocks in a row and don't want to do any more trial and error :) ...

The only way to add classes to images and links is to add a div wrapper, right?

I had put all these classes within img and links to save unnecessary excess divs but it looks like I will have to change that... I think.

Type: Discussion
Status: New
zoinks
View Replies: View Best Answer
jordanlev replied on at Permalink Best Answer Reply
jordanlev
That's the only way to do so from within the designer content dashboard page.
But it's not too hard to edit the block's "view.php" file (in SITEROOT/blocks/your_block_handle/view.php) so that the class is on the <img> tag itself.

(Blocks created with Designer Content are exactly like any other C5 block in this regard).
zoinks replied on at Permalink Reply
zoinks
holy crap, you have just given me a huge tip I did not know.

And you saved me another re-do. I just went in and edited the view.php to match my initial layout and reverted to my original style sheet and everything is PERFECT!

Thanks again, for the 3rd time this morning. :)

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.