How to disable background image/pattern in mobile devices

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

How to disable background image/pattern in mobile devices

Postby vch » 20 Jun 2012, 19:23

So far so good with my personal customisation of Suffusion, nice looking and large number of options that enable us to create something unique and potentially outstanding. However, I haven't been able to work this out:

(For mobile devices) How to disable the background image/pattern (set to work in the regular theme for laptops, desktops), etc, and only see the 'Main Wrapper'? I use an image that is repeated throughout the background and looks very nice on my desktop screen, but the opposite on my mobile.

Thanks a lot for any insightful comments on this issue.

Cheers
vch
 
Posts: 6
Joined: 18 Jun 2012, 17:37

Re: How to disable background image/pattern in mobile device

Postby Colin » 20 Jun 2012, 23:10

The theme is not 'responsive' so you would need to have some custom javascript to identify that it is a mobile device and then turn off the background etc.
Colin
 
Posts: 2856
Joined: 27 Oct 2009, 10:46

Re: How to disable background image/pattern in mobile device

Postby vch » 21 Jun 2012, 14:27

Alright. Well, I believe there is strong demand for such a javascript, as lots of bloggers, webmasters, etc want to have a sophisticated site background for pcs/laptops/etc, but a sober, single color for mobile devices. I do not know javascript and do not have the time to learn just for a single application, so if someone knows of a similar or related code, please say so.

Thanks very much again.

Cheers
vch
 
Posts: 6
Joined: 18 Jun 2012, 17:37

Re: How to disable background image/pattern in mobile device

Postby sayontan » 21 Jun 2012, 17:46

Try using the "Mobble" plugin. It should assign a class to the "body" element for mobile devices. You can then use custom CSS to style that. E.g. you will be able to do this in your custom styles:
Code: Select all
body.mobile { background: none; }

However, note that the only difference between the mobile and desktop views will be this: your mobile users will not see the image, but the mobile browser will still load it. So in terms of bandwidth etc you are not gaining anything. In fact you are just adding some additional CSS code for no measurable performance benefit. This is, in general the issue with most approaches to responsive design, which focus more on the presentation rather than the real benefits.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10161
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: How to disable background image/pattern in mobile device

Postby vch » 21 Jun 2012, 18:02

Thanks a lot Sayontan. One more thing, it's completely valid what you say about bandwidth, how about a solution that indeed gets rid of the background image and reproduces either a single color or nothing at all in mobile devices?

Cheers
vch
 
Posts: 6
Joined: 18 Jun 2012, 17:37

Re: How to disable background image/pattern in mobile device

Postby sayontan » 21 Jun 2012, 18:22

vch wrote:One more thing, it's completely valid what you say about bandwidth, how about a solution that indeed gets rid of the background image and reproduces either a single color or nothing at all in mobile devices?

Sure. Are you volunteering to build such a solution? :-)

These things are easy to suggest, but tough to implement - a solution for this is going to take a lot of planning, time and effort.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10161
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: How to disable background image/pattern in mobile device

Postby vch » 22 Jun 2012, 04:06

As I said before I don't have the time to learn javascript, etc just for a single application. If it exists, cool, if not, there's always a way around it.
vch
 
Posts: 6
Joined: 18 Jun 2012, 17:37


Return to Support Requests

Who is online

Users browsing this forum: Exabot [Bot], malverd, Sportsmann and 5 guests