Home>Support>Page content padding effects mobile layout

Page content padding effects mobile layout

Hi there,

First of all, Vantage is a great theme I love it!

There is one issue I have come across for a client of mine. He wants the text on the pages to be ‘boxed’ in so the text doesn’t run the full length of the page. I therefore added 150px of padding each side of the text on page builder and it works fine. Please see – http://swallowsosteopathy.co.uk/about/

However, when you view the website on a mobile device, the padding still applies to the page content and it only shows one letter per line of text.

Is there anyway I can remove the 150px padding for mobile devices but keep it for desktop devices?

Many thanks,

Harry

The website with the issue – http://swallowsosteopathy.co.uk/about/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 10 months ago Harry Simonis

    Hi, has anyone got any ideas how to resolve this?

    Thanks!

  2. 7 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Harry,

    I would recommend switching to a percentage based padding rather than a px based padding. That way you can have a large amount of padding on the desktop and it’ll translate over nicely on the desktop.

    You could also remove the padding. To do this please open the row or widget you applied the padding too, then head over to the row / widget styles sidebar. Open the Attribute settings group and set the Widget / Row Class as no-padding-mobile and then save the page.

    Please navigate to WP AdminAppearanceCustom CSS and add the following CSS:

    @media (max-width: 550px){	.no-padding-mobile {		padding: 0 !important;	}}

    You might also need to install the SiteOrigin CSS Editor.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More