WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a blockquote and I can float it left or right if I want by going into the html editor and adding class="alignleft" etc. Is there any way I can make that available to a non tech individual with a button or plugin / function or something. I think i'm looking at a tinymce plugin but i've never done anything with that area; so hoping to avoid that at this time if at all possible. If that is what I need would anyone have a code snippit or a link to a good tutorial. I imagine it's a fairly common thing to have.

share|improve this question
up vote 2 down vote accepted

This tutorial gives you a short plugin you can modify to create a "styles" drop down with the "alignleft" and "alignright" classes in it.

As a note, just to stay out of WordPress's way, I might choose a different class or at least something prefixed like me-alignleft.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.