i have responsive template, its have 3 php files : - templatedesktop.php : template file for desktop
[PHP] What if conditional methode to do this? please help
2
i have responsive template, its have 3 php files :
- templatedesktop.php : template file for desktop
- templatemobile.php : template file for mobile
- page.php : contain information content, its included templatedesktop.php & templatemobile.php file inside
now i need to hide some part inside page.php, that should hide from mobile version, and appeared in desktop version only
i already tried add this define code inside templatedesktop.php file :
and wrap some part that want to hide
but its not working, maybe its should do the opposite, please help what is the right if conditional/methode? like request, referer or other
- templatedesktop.php : template file for desktop
- templatemobile.php : template file for mobile
- page.php : contain information content, its included templatedesktop.php & templatemobile.php file inside
now i need to hide some part inside page.php, that should hide from mobile version, and appeared in desktop version only
i already tried add this define code inside templatedesktop.php file :
and wrap some part that want to hide
but its not working, maybe its should do the opposite, please help what is the right if conditional/methode? like request, referer or other
- Arshid
Next Topics on Trending Feed
-
2