Hey guys,
I need to add a PHP script to my homepage in order to detect the browser and direct the mobile users to the mobile website written in jQuery. The PHP code also includes a cookie option so the users will be able to switch back to the full website without getting stuck in redirect loop. The code works fine but I only need it on the homepage and not on the other pages. I add this script to the top of the default.php page on the template. It doesn't have to be on the header section (<head>) to work. is there anyway to add this code to an individual page (in my case homepage) but not all the other pages?
Thanks,
SH