Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    
    img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
        display: block;
        margin: 0 auto;
    }

    To add CSS: If you are using WordPress 4.7, use the “Custom CSS” option in the customizer. If your theme has a custom CSS option, use that to add the CSS shown above. If not, install the plugin Simple Custom CSS. Or, if you have Jetpack installed, enable its Custom CSS module.

    Learn the Chrome Developer Tools to help you see and test changes to your CSS.

    Thread Starter badassesboobsandbodycounts

    (@badassesboobsandbodycounts)

    So I used the following in the custom CSS option:

    /*

    img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
        display: block;
        margin: 0 auto;
    }

    */

    To no avail. I also installed SCCSS and did the same to no avail. The image is stll left centered.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I don’t see it in your CSS. Do you have any caching enabled?

    Thread Starter badassesboobsandbodycounts

    (@badassesboobsandbodycounts)

    Do you have any caching enabled?

    I’m not sure what you mean by this. CSS is new to me so I’m a bit clueless. I’ve attached an image to where I’m putting this code. It’s in the “Additional CSS” function built into the theme.

    CSS

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’ve put it inside comments so it won’t get executed. /* .... */delimit a comment.

    Thread Starter badassesboobsandbodycounts

    (@badassesboobsandbodycounts)

    HAHA, holy crap. FIXED! THANKS SO MUCH Steve. Now I’m gonna go bang my head on another problem ??

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Now I’m gonna go bang my head on another problem ??

    The meaning of life ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Center Align Images in Posts’ is closed to new replies.