• Hi,

    i have problems with the mobile website from the inprofile theme. The author has canceled support and so im really lost ??

    The desktop version works fine, but if you access the site https://marnymeyer.de/ with a smartphone, the navigation box is empty.

    I tried to activate debugging or have a look at the logs with no success.

    Can anyone help me please?

    Im on wordpress version 4.6.1 and on inProfileVersion: 1.3.

    • This topic was modified 8 years, 4 months ago by nycrom.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Probably you have not assigned menu to mobile version.
    Try to go Appearance->Menus and at the bottom of the settings, you will find the Section “Menu Settings”, check the option for mobile menu, if it exists.

    Regards

    Thread Starter nycrom

    (@nycrom)

    There is no option for a mobile menue there.

    The mobile menue worked earlier – i think it stopped working after a wordpress upgrade.

    Thread Starter nycrom

    (@nycrom)

    I found this code in the functions.php from the theme, which is instantiated in the header.php. But i dont know if this has something todo with the problem…

    class gp_mobile_menu extends Walker_Nav_Menu{

    var $to_depth = -1;

    function start_lvl(&$output, $depth){
    $indent = str_repeat(“\t”, $depth);
    }

    function end_lvl(&$output, $depth){
    $indent = str_repeat(“\t”, $depth);
    }

    function start_el($output, $item, $depth, $args){
    $item->title = str_repeat(“-“, $depth * 2).’ ‘.$item->title;
    parent::start_el($output, $item, $depth, $args);
    $output = str_replace(‘<li’, ‘<option value=”‘ . $item->url . ‘”‘, $output);
    }

    function end_el(&$output, $item, $depth){
    $output .= “</option>\n”;
    }

    }

    Hey @nycrom,

    I cannot reproduce the problem because I cannot find your theme!

    However, try to switch for a while your theme to Twenty Fourteen and see if it works. If it does, then we must change the code to something like this:

    <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
    				<button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
    				<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
    				<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu' ) ); ?>
    			</nav>

    Probably, it won’t work as is.
    You can make a .zip file of this theme and upload somewhere to be available for the community in order to help you further.

    Best regards.

    Thread Starter nycrom

    (@nycrom)

    The theme can be found here: https://gofile.me/6s8Mb/oZpHXoXgp

    In the standard theme the navigation works.

    Thread Starter nycrom

    (@nycrom)

    So i hard coded it now as workaround

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Themes mobile navigation is broken …’ is closed to new replies.