Hello, pardon the newbie question, but I'm trying to alter the output of the image assets to strip out some of the HTML tags and add some additional classes. My thought was that I could grab the asset.tpl.php file and put it in my theme/templates directory with the edits, clear the cache and see the results. But I'm not seeing anything change.

Can anyone point me in the right direction?

Thanks

Comments

kholloway’s picture

Regarding Assets in WYSIWYG:

Thought I'd give some insight here as I hit the same issue. Essentially it's not a live render of a themed asset. The asset template is utilized when an actual asset is added or inserted into a WYSIWYG editor. The markup code in the WYSIWYG ends up being the actual rendered code as the tpl.php file specifies. So once you insert/save the asset in WYSIWYG it's never re-processed through that template file.

Long story short any tpl.php file changes are only applied to assets created/inserted in WYSIWYG after that template file change.

kaypro4’s picture

Ah, that makes sense. Thanks so much for weighing in on this. Honestly, it has been so long since I had the issue I'm not sure how I resolved it. But this is great to have for the next time I run into it. Which I'm sure I will.

Thanks again.