Text not centered after clicking on the post links

Firstly, after clicking on links my posts are not centered but I want them to be centered. My posts are not public so there is no help to give URL but I inserted a screenshot:

Secondly, in mobile view (my URL is xlaen.ee) text is a little bit too much on the right.

So guys, I hope you can help me. :wink:

Hey @Tammet,

I’m sorry but we could not help given the screenshot alone because we can’t inspect the code that way. We need it to see what you mean but we need to inspect the actual code.

Here’s your site’s display on mobile.

I don’t see this what you described as “text is a little bit too much on the right”. Please point us to the issue.

Thanks.

In my mobile, site looks like that:

Problem is with the ‘‘T’’-letter.

And the other thing, I made my posts public, so you should see them. Click on post links (titles) and then you should see that body content (text) is not centered. http://xlaen.ee/xlaenublogi/

I see. The text overflows because of its size. There are three options for that.

First, since you’re using the Classic Custom Headline, the simplest way would be to lower the font size by setting a lower heading level. I tested h4 and it works well.

Second, you can use the Responsive Text feature. Please watch this screencast to see a usage example.

The 2 options above is good for page level setup. For global setup, I’d recommend you lower the XS and SM Root Font Sizes in Appearance > Theme Options > Typography

For the content not centered issue, I see you have this code in your custom CSS

.single .x-main {
    width: 69% !important;
}

Add float and margin to it so it would be

.single .x-main {
    width: 69% !important;
    float: none;
    margin: 0 auto;
}

This should be the result.

Hope that helps.

It helped but not 100%. I got the text size right - so thank you.

But problem is with centering the text. Only the first post (the most bottom) went to center, other two post are still not centered.

You have 3 posts and all of them are centered on my end. The code I gave applies to them all. Please clear your browser’s cache and also check in incognito mode.

Thanks.

Yes. After I logged out of WordPress all posts are perfectly centered. Thank you, you really helped me a lot :wink:

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.