Jump to content
Sign in to follow this  
jjc_vr

Completely hide background image - mobile

Recommended Posts

jjc_vr

Hi there,

 

I'm currently trying to figure out how to hide a fixed background image for mobile (just iphone initially...)?

 

In the custom css area i've added (as per the documentation on the browser-specific CSS plugin):

 

body.iphone { background-image: none;
}

 

However, that doesn't seem to be working for me.

 

I've then had a look in Firebug and I noticed that the image has the style-id 'pagelines-page-bg', so I tried:

 

body.iphone.pagelines-page.bg {background-image:none;}

 

but still no luck.

 

Any clues? I'm kinda stuck until I figure this out...

 

Cheers and thanks

Share this post


Link to post
Share on other sites
Rob

Hi,

 

May I have a link to the site? Thanks.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Danny

Hi,

 

The background image is assigned to the body tag, therefore thats the reason why your code isn't work. If you inspect your website using Firebug or your browsers web dev tools, you will see that the image is assigned to the page-canvas div.

 

Therefore, you need to adjust your code to include .page-canvas.

 

For example:

body.iphone #page .page-canvas { 
background: none;
}

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
jjc_vr

Superb work - thanks very much for your help.

 

Cheers

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • dwpoyner
      By dwpoyner+
      Not sure exactly what is causing the issue. For some reason, why you view my site on mobile, the menu does not show up. It will pop up, but it is black. You can check it out here: http://dev.caryfbc.org. I'm also attaching a screenshot where I shrunk my browser down. Any suggestions?

    • kwaoru
      By kwaoru
      Hi,
       
      I have been using DMS and pagelines.
      I am facing to a huge trouble with the appearance of one of my page on mobile (smart phones) built with pagelines.
      However I haven’t come to any solutions to organise either edit the appearance of mobile view to look neat or deactivate the responsive function. 
      Now it looks totally messy on the phone...
       
      1. Is there any way to edit the appearance of the mobile version (responsive theme)?
      2. Is there any way to deactivate responsive function?
       
      If I could receive support from you to go thorough this process I would be happy to be a pro member. 
       
      Looking forward to hearing from you.
    • poseyg
      By poseyg+
      This just happened to a site I'm working on. When I decrease width of browser to check for responsiveness...the pagelines content section is not responding???
    • yemoonyah
      By yemoonyah+
      While building my website, I set a padding of 5%, 25%, 5%, 25% so the text on the pages is not too wide.
      However, it looks crappy on mobile.
      How do I get the same effect and still have it look good on mobile?
      Example: http://yemoonyah.com/quiz
      Thanks
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      can I limit the overall of MegaNav on mobile? When I look at michaelkummer.com on a mobile device, the menu takes up more than a third of the screen space. Using CSS to limit max-height doesn't seem to work. Is there another/better way to reduce the overall height to maybe 10% of the screen available?
      Thanks
      Michael
       
×