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.
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 |
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. :)
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. :)
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).