Tag Info

Hot answers tagged

1

It would be more efficient to add a container with a certain class name around content that has been created with the HTML tab. That way you're avoiding the code getting bulky.


1

you can use: add_filter('the_content', 'addClassToLinks'); function addClassToLinks($content){ return str_replace( '<a ', "<a class='myclass'", $content); } But i don't recommend it. Just add in theme an specific class for container of the content. It is cleaner and use in css: .myclass a { // css for a that is fount inside myclass }


1

You can use Advanced Tinymce plugin to solve your problem. This plugin enables the advanced features of TinyMCE, the WordPress WYSIWYG editor. It includes 15 plugins for TinyMCE that are automatically enabled or disabled depending on what buttons are chosen. You can see demo here.



Only top voted, non community-wiki answers of a minimum length are eligible