• Greetings,

    I’ve been using the Hitmag theme, and suddenly I noticed all the content in the main area of my blog-post pages is centered. And I mean everything: headings, text, media, comments, related posts, etc. Thinking I may have messed up some of the CSS, I cut it all from the customizer to see if the post pages would revert to normal, but they didn’t. If I activate a completely different theme, I encounter the exact same problem on the blog-post pages.

    I use a child theme and have never modified anything other than CSS through the customizer. The fact it’s happening on all tested themes makes me think it’s not theme related, but I know nothing; I’m a complete amateur and this is my first site. I tried uninstalling some recently installed plugins, even though I think the pages were initially displaying fine with them installed, but it was to no avail. All my plugins are up to date and compatible with my version of WordPress 4.9.1.

    Any thoughts on how to fix this?

    Many thanks in advance for your help and support!

    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • Use your browser inspector to find where that content center code is coming from.

    Also be sure that you are not seeing browser or website cache in operation, they could be showing you stale content. So confirm what you are seeing by using a different computer or different browser to view your site.

    Thread Starter chrisnmandy2004

    (@chrisnmandy2004)

    Thank you for responding!

    I checked the area out, and I found a div called <center> and all the post content is inside of that. I know for certain my posts were not centered initially. I went to the theme demo page, and I checked the same section, and it looks a bit different of course, but I don’t see <center> anywhere. I took screenshots; you can see them below…

    Thanks again!

    https://ibb.co/mGvOrb
    https://ibb.co/bUjuxG

    Thanks for the screenshots.
    Yes I see the line you highlighted:
    <center> == $0
    But above it is:
    <div class="code-block code-block-1" style="padding-bottom: 50px; text-align: center">...</div>
    That div is also centered, its first client is an image, that may be a clue.
    Is there a </center> phrase further down ?

    Though it would be fixing the problem the wrong way, have you tried custom css of:

    article {
    text-align: left;
    }

    Not sure if this will even work, I have never set style on an “article” thingie.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Post Content Suddenly All Centered’ is closed to new replies.