This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Page content padding effects mobile layout

9 years ago · Last reply by Alex S 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Harry Simonis 9 years, 3 months ago

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

    Thanks!

  2. Alex S Staff 9 years, 3 months ago

    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.

Have a different question or issue?

Start New Thread