WordPress.org

Ready to get started?Download WordPress

Forums

How to give Authors ability to add HTML code to images (2 posts)

  1. loconzly
    Member
    Posted 6 years ago #

    I have added parameters to the style.css so that posters to my blog can add class="alignleft" to their images and use those parameters.

    They are currently able to add align="left" by clicking the image button, but if they add the class, WordPress automatically strips it out as soon as they publish.

    Administrators are able to add the class, however. I don't want to have to go in to every post and tweak their work.

    Is there a way to give Authors the ability to add that html code to their posts without WordPress stripping it out?

  2. Doodlebee
    Member
    Posted 6 years ago #

    Is there a way to give Authors the ability to add that html code to their posts without WordPress stripping it out?

    Yes, turn off the Visual Rich Editor.

Topic Closed

This topic has been closed to new replies.

About this Topic