Charlie Strickler
Forum Replies Created
-
Here is the code I used in my footer.php for my WP Touch child theme. I set WP touch to direct to the same URL. You should replace 1776 with the page ID of your mobile home page and you should replace domainname.com with your home page URL or the URL you want your mobile home page redirect to when the mobile theme is disabled.
<?php if ( is_page( 1776 ) ) { ?> <div title="http://www.domainname.com?wptouch_switch=desktop&redirect=http://www.domainname.com"> <span class="on active" role="button"></span> <span class="off" role="button"></span> </div> <?php } else { ?> <div title="<?php wptouch_the_mobile_switch_link(); ?>"> <span class="on active" role="button"></span> <span class="off" role="button"></span> </div> <?php } ?>I am using WP Touch Pro (which I love) and the site I am working on is http://www.rolloffdumpsterdirect.com
Hi, I really like how turning off the mobile theme will keep you on the same URL. Because WordPress home pages are often made up of widget areas and content sliders we usually make a separate page in WordPress to use for the WP Touch home page.
Is there anyway I can have the “Off” button remain on the same URL with the exception of the mobile home page which would redirect to the normal site home page?