Child Theme – PHP condition that only activates code when NOT a mobile devices
-
I made a modification in the Child PHP file. It works great if it is not a mobile device. If a mobile device is used the original parent code works best.
Does anyone know how to set a condition on the Child PHP code to over ride the parent ONLY if the device is not a mobile device?
Example:
a) If on a mobile device us the original Parent Theme’s code.
b) If not on a mobile device use the Child PHP code.
- The topic ‘Child Theme – PHP condition that only activates code when NOT a mobile devices’ is closed to new replies.