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.

Vantage theme not mobile optimized anymore

10 years ago · Last reply by Andrew Misplon 10 years ago

Hi team,
I build a website with your theme but when it comes to mobile it doesn’t look awesome anymore and I don’t know why. As you can see (URL below) on a smartphone the whole content is on the far right side which should not be. Could you please help? Thanks in advance.

URL: http://bit.ly/1IlAKgK

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 10 years, 7 months ago

    Hi Davor

    Thanks for reaching out.

    The problem is the left margin you’ve added. Try wrapping it in a media query so it doesn’t render for mobile:

    @media (min-width: 680px) {
    	#primary.content-area {
    	    margin-left: 118px;
    	    margin-bottom: 10px;
    	    margin-top: 0px;
    	}
    }

    Something like that. Let us know how you come along.

    • Davor Ivaskovic 10 years, 7 months ago

      Hi Andrew,

      I put your code into Site Origin’s “Custom CSS” but it didn’t work.. or should I put it anywhere else?

      Best regards,

  2. Davor Ivaskovic 10 years, 7 months ago

    Hi Andrew,

    I put your code into Site Origin’s “Custom CSS” but it didn’t work.. or should I put it anywhere else?

    Best regards,

  3. Andrew Misplon Staff 10 years, 7 months ago

    Thanks. You’ll need to remove the original rule:

    #primary.content-area {
      /* margin-left: 157px;
      margin-top: 20px;
      */
      margin-left: 118px;
      margin-bottom: 10px;
      margin-top: 0px;
    }

    What we’ve done is take your original rule and put it inside a media query to say don’t use this on mobile. If you leave the original rule in place and add my new rule it won’t work. Hope that makes more sense now. We’re trying to add your left margin only above 680px resolution.

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