Hi,
I'm using quite a large margin on the left side of my website to provide for better focus to the eyes. But on a mobile device this defeats the purpose because it takes up too much valuable browser space.
To fix this I've installed the Browser Specific CSS plugin and written different code for .desktop and .mobile like this:
This works perfectly well for all pages on iPhone except for the static homepage where I use a masthead and anything-boxes as only content.
The page has a fullwidth layout but whatever I change in fullwidth CSS it doesn't change.
I thought maybe I have a override for that specific page but that doesn't seem to be the case.
Really weird is it that it does work on the English homepage but not on the Dutch.
Could this be a bug in the plugin? Or am I overlooking something?
Thanks, Jan
Browser specific CSS not working on homepage
Started by
janpeeters
, Oct 12 2012 12:01 PM
browser specific css
6 replies to this topic
#1
Posted 12 October 2012 - 12:01 PM
#2
Posted 12 October 2012 - 02:16 PM
If it's not working on the Dutch page, it probably has to do with the plugin you're using for translation (although I'm not sure how language and CSS can be related). What mobile CSS did you try using for Masthead and Anything Boxes?
#3
Posted 12 October 2012 - 04:58 PM
Your using w3 total cache, so the end user will always get a cached page. It might have some kind of mobile settings, i dont know.
#4
Posted 13 October 2012 - 08:48 PM
Hi Simon,
Thanks a lot, that pointed me in the right direction. It indeed pre-creates cache pages for quick access, but it didn't distinguish between creating them for mobile and desktop. Thanks again!
Jan
Thanks a lot, that pointed me in the right direction. It indeed pre-creates cache pages for quick access, but it didn't distinguish between creating them for mobile and desktop. Thanks again!
Jan
#5
Posted 13 October 2012 - 09:09 PM
For those of you wondering about the solution. This is what works for me, but don't ask me if I understand all the nuts and bolts... I don't
You can create User Agent Groups in W3 Total Cache. If you activate the preinstalled 'High' group and point it to the Pagelines Framework Base theme. You can still use Cache Preload under Page Cache but now it creates another cached version specifically for that user group. This solved my problem mentioned above.
You can create User Agent Groups in W3 Total Cache. If you activate the preinstalled 'High' group and point it to the Pagelines Framework Base theme. You can still use Cache Preload under Page Cache but now it creates another cached version specifically for that user group. This solved my problem mentioned above.
#6
Posted 13 October 2012 - 10:29 PM
Jan, thank you for that insightful guidance. I'm resolving this, but if you need, we can reopen it at any time.
#7
Posted 13 October 2012 - 10:30 PM
The topic was marked as resolved.












