- This topic has 2 replies, 3 voices, and was last updated 5 years, 10 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Tagged: Infinity Pro
I have been trying to change the front page background image to a different one, when viewed on a mobile.
Can someone help me please.http://test.myersfitness.co.uk/
I am assuming you're speaking of the background image for front-page-1? The CSS for the front-page-1 image is added as inline CSS at run time. The inline CSS has the url for the background images. This is giong to be tricky and maybe a little complicated to meet your requirement.
Normally, we would just add the new background image in the appropriate CSS media query and we're done. But because Infinity Pro uses inline CSS, the inline CSS overrides style.css.
You can try adding the new background-image to the media query first to see if it works. If it doesn't you may have to go with jQuery or PHP. I would try PHP next using wp_is_mobile() as a conditional. If that doesn't work, then jQuery is the way to go.
© 2024 WPEngine, Inc.