Per client request I was asked that the WPtouch menu default to toggled open when on the frontpage . There may be more elegant solutions, but in order to achieve this I ended up editing a single WPtouch plugin file. If you’re going to do this make sure your code is in version control so that you can easily identify and add back the changes after any plugin update.

Now, to update WPtouch to start with an expanded menu on your homepage/frontpage open header.php for the WPtouch theme that you are using. In my case:

themes/classic/iphone/header.php

Around line 64 is the menu containing div id, id=”main-menu”:


            
                

What you’ll want to do is add an if statement checking for is_front_page and if true you’ll go ahead and add a style to display, style=”display: block;”:


            
                
                

That should do it.

Editing header.php of your chosen WPtouch mobile theme as seen above should get you an expanded menu (if you’re using the menu) on front-page visits.