• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Pic Won't Center Align!

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Pic Won't Center Align!

This topic is: resolved
  • This topic has 5 replies, 2 voices, and was last updated 11 years, 5 months ago by jbergen.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • September 30, 2014 at 4:05 pm #126358
    Anthony Galli
    Member

    For some reason the picture won't center align when I click align. In the example below I had to use the spacebar. Not classy. The space difference unfortunately shows on your phone.

    Will you help me?

    This is your destiny!


    I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com

    http://www.anthonygalli.com
    October 1, 2014 at 12:33 pm #126453
    jbergen
    Member

    Hi!

    The problem is related to a couple of unnecessary inline style rules in your img tag. First, remove style="display: inline;" and remove lazy after class="... from the HTML used to display the blog post image (see below):

    Before the change:

    <img scale="0" src-orig="http://i1.wp.com/www.anthonygalli.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif?resize=300%2C215" style="display: inline;" class="lazy wp-image-1784 size-medium aligncenter" src="http://www.anthonygalli.com/wp-content/uploads/2014/09/rules-2-300x215.jpg" data-original="http://www.anthonygalli.com/wp-content/uploads/2014/09/rules-2-300x215.jpg" alt="rules-2" height="215" width="300">

    After the change:

    <img scale="0" src-orig="http://i1.wp.com/www.anthonygalli.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif?resize=300%2C215" class="wp-image-1784 size-medium aligncenter" src="http://www.anthonygalli.com/wp-content/uploads/2014/09/rules-2-300x215.jpg" data-original="http://www.anthonygalli.com/wp-content/uploads/2014/09/rules-2-300x215.jpg" alt="rules-2" height="215" width="300">

    Then remove the spaces you had to add before the image, and the .aligncenter class given to the image when you click "align: center" should work.

    Jamie


    Jamie @ Ladebug Studios

    October 1, 2014 at 4:27 pm #126473
    Anthony Galli
    Member

    Sorry!

    I can't find where to do the changes. Is that in the CSS somewhere? This doesn't just happen with this one blog post's pic, it happens to all of them when I try and center 🙁

    Thanks again for reaching out to me and trying to help!


    I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com

    October 1, 2014 at 4:33 pm #126474
    jbergen
    Member

    I don't think it's in a CSS file. It appears to be inline in your HTML. When you write blog posts, which tab in the editor are you using? Visual or Text? Assuming you're using the Visual tab, try switching to Text to see that HTML tag that I pasted into my last reply. If you find it, you can make the changes I mentioned.

    The question of why it's happening to all of your blog post your images is a slightly larger issue. Assuming you're not manually inserting all of that inline style stuff, can you think of a plugin you're using that might be doing it?

    Jamie


    Jamie @ Ladebug Studios

    October 1, 2014 at 5:36 pm #126476
    Anthony Galli
    Member

    Thank you so much you helped me solve the issue!

    I was using a plugin to slow down image loading in the name of speeding up the website. Didn't do well in either regard so I deleted it, therefore solving this issue too!

    Thanks Jamie! Good luck with ladebug!


    I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com

    October 1, 2014 at 6:07 pm #126481
    jbergen
    Member

    I'm glad it worked out!

    Jamie


    Jamie @ Ladebug Studios

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble