Exclude Tablets from Mobile Theme

Permalink
Hi all,

I have searched the forums for a solution, and I can't find one that specific to c5 5.7.X

I need to exclude Tablets from my Mobile Theme, as the site I am developing looks good on an iPad but needs unique template pages for mobile phones. Does anyone know how to edit the c5 source files to do this?

Again... this is for c5 5.7.X

Thanks,
Craig

vergedesign
 
mkly replied on at Permalink Reply
mkly
concrete5 uses the PHP Mobile Detect library

https://www.concrete5.org/community/forums/5-7-discussion/exclude-ta...

https://github.com/concrete5/concrete5/blob/develop/web/concrete/src...

https://github.com/concrete5/concrete5/blob/develop/web/concrete/src...

The last one is likely the one you want to change. Something like

if ( $detect->isMobile() && !$detect->isTablet()) {
vergedesign replied on at Permalink Reply
vergedesign
Thanks for the quick reply, but this solution is for older versions of c5, and no longer works in 5.7.5.2

It used to be structured like this, but now it is more complex. I haven't been able to find an answer for more recent versions of c5.