I received the same error! Any fix?
put an if statement in front and after the class definition.
if ( !class_exists( 'Mobile_Detect' ) ) {
class Mobile_Detect {
...original class code....
}
}
I’m the author of the “Mobile CSS” plugin here:
http://wordpress.org/plugins/mobile-css/
It uses the same class but correctly checks to see if it’s already defined.
Anonymous User 13176105
(@anonymized-13176105)
Shame – seems like a really good plugin – I tried this, but to no avail. You may need to be a bit clearer as to where the closing brackets go (or better still, post the code in it’s entirety if possible
Thanks
@JBinJPN
Put
if ( !class_exists( 'Mobile_Detect' ) ) {
on the line right before
class Mobile_Detect {
and put
}
right after
}
that is the closing bracket for the Mobile_Detect class.