Support » Theme: Bouquet » Center images

  • Resolved tatianamk



    I am using WordPress 4.0 with Bouquet theme.

    I have been blogging for a little over two years and I have changed my mind several times over whether I wanted all my images centered or aligned to the left. Now it just looks messy because everything is different.

    I don’t really want to go back to my 300+ articles to center all of my images.

    Is there something in CSS I can do (I am really very very new to CSS so there isn’t very much I can do currently…) to center all of my images, even if at first I didn’t want them centered?

    Hope that was clear enough…


Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn


    Automattic Happiness Engineer

    This CSS should force all left-aligned images within post and page content to be centered:

    .entry-content img.alignnone, .entry-content img.alignleft {
      display: block;
      margin-left: auto;
      margin-right: auto;

    Important: Note that once you add this, you’ll no longer be able to left-align images using the left-justify button in the post editor.

    Don’t edit the theme files directly, otherwise your changes will be overwritten whenever the theme is updated.

    Since you’re already using Jetpack, an easy way to add custom CSS is to activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    Hello Kathryn,
    Thank you very much for your help, it worked wonderfully! 🙂

    Moderator Kathryn


    Automattic Happiness Engineer

    You’re welcome, glad to hear it did the trick.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Center images’ is closed to new replies.