How to change text alignment on mobile version ONLY?


I’d like to centralize the text just on mobile version. I mean, keep on left side on desktop and centralized on mobile.

Could you help me, please?


Hello @breno,

Please try to use the following CSS code.

You can add CSS code in DashboardAppearanceCustomizeAdditional CSS (WordPress 4.7 and up). Also you can add CSS code directly to style.css file of your child theme.

@media only screen and (max-width: 767px) {
    body {
        text-align: center;

However, one of your home page sections will still be left aligned. It looks like you forced it somewhere in settings.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

It works!

Thank you so much!

You are welcome @breno! :slight_smile:

Kind Regards, Roman.