Switch Style on mobile detection

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Scam Warning
Locked
testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Switch Style on mobile detection

Post by testingground »

Ok I know 3.1 is responsive but my main style is quite 'busy' and Id like a much simpler style when on a mobile device.
So it switches to the simple style on mobiles but normal style on desktop. Is this possible like it was on 3.0?

Thanks
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Switch Style on mobile detection

Post by canonknipser »

It was not default in 3.0, you needed a modification for that. Mobile detection nowadays happen via css (window width), the only modification I remember did it afaik by browser agent detection with a quite long list of browser agents (but before you ask: I don't have a download source).
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6669
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Switch Style on mobile detection

Post by HiFiKabin »

I know its a style for 3.0.x (so obviously will not work on 3.1.x and 3.2.x) but it has a mobile detect switch which you may be able to integrate into your idea. Whether it will work or not I have no idea.

https://www.phpbb.com/customise/db/styl ... er_mobile/
Locked

Return to “[3.1.x] Styles Support & Discussion”