Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I'm implementing a mobile version of an existing site. I'm using the jquerymobile module to make this happen. The constraints of the problem are:

  1. The main site has a header that appears on every page when on the non-mobile site.
  2. We show a limited version of the header on the splash page in the mobile version.
  3. On the subsequent pages, I want to suppress the header entirely.

1 and 2 are already implemented. #3 is proving to be harder than anticipated. The main reason is due to either my lack of understanding how the module works or some flaws in the module itself.

I'm not using the main menu for nav in the app. Because we potentially have more items across the top of the page than the main screen will handle, we use "nice menus" as a replacement for the main menu.

THE ISSUE: When I tap or click a menu item, I go to the proper page. But the front class is not being updated and I've tried to use a *hook_page_alter* and *hook_node_alter* to detect when the new page is being displayed with no luck.

I need to figure out how to detect the when the new page is being displayed and suppress the header before output.

Has anyone had any experiences like this? Any suggestions would be very welcome.

Thanks in advance!

Scott.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.