WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Jetpack mobile theme: Page list instead of main menu (8 posts)

  1. TheHutt
    Member
    Posted 1 year ago #

    Hello,

    I use the Jetpack mobile theme Minileven for my website: http://www.henneth-annun.ru . The main theme it uses is 2010 Weaver which is based on the TwentyTen theme. There is a navigation menu bar which is the only defined menu.

    However, the Jetpack mobile theme does not seem to be able to detect the menu; instead, it shows the entire list of pages, which makes the whole site unusable. So for now, I removed the menu loading code. What are the possible ways to solve this problem?

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I checked your site, and I couldn't see any menu at all. Did you remove it from the Mobile Theme files?
    The Mobile Theme searches through the custom menu locations for your current desktop theme and displays the menu assigned to the primary position. If you have no custom menus assigned, it will default to the standard page menu.

    I also saw that you made some changes to the Mobile Theme's stylesheet. Instead of editing the Mobile Theme files directly, I would suggest that you use Jetpack's Custom CSS module instead.

    The custom CSS editor (under Appearance > Edit CSS) includes an option to include this custom CSS in Jetpack's mobile theme. You could consequently customize the look of the Mobile theme by adding your custom CSS code there, instead of editing plugin files, and losing your changes with every Jetpack update.

    You can use the .mobile-theme class to target only the Mobile theme.

  3. TheHutt
    Member
    Posted 1 year ago #

    Yes, I had to remove it from the Mobile Theme files because the menu detection did not work and I could not keep the pages-generated menu on a live site. Anyway, here is a screenshot of how it looks like.

    http://www.henneth-annun.ru/test/ha_menu.jpg

    Thanks for the tip with the Styles.css! I'll check it out.

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Could you post a screenshot to your Custom Menu settings, so I can better understand the issue?

    Thanks!

  5. TheHutt
    Member
    Posted 1 year ago #

    Why yes, I can. Here it is (though it's in Russian). The live version of the menu can be seen on the main site henneth-annun.ru (non-mobile).

    http://www.henneth-annun.ru/test/ha_menu1.jpg

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    What happens when you fill in the "Secondary Navigation" theme location, on the left hand side of that page?

  7. TheHutt
    Member
    Posted 1 year ago #

    Now that's interesting. If I fill out the Secondary menu, it is in fact loaded in the mobile theme. However, on the normal site, I have both the Primary and the Secondary menu displayed which is not what I want.

  8. TheHutt
    Member
    Posted 1 year ago #

    Okay, I solved the issue by the following:

    - Defining both Primary and Secondary menu on my main theme (set to the same menu);
    - Setting the secondary menu to invisible on my main theme;
    - Now the Primary menu is displayed on my main theme and the Secondary menu is displayed on my Mobile theme; however, as they set to display the same menu, it does the trick.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.