Support » Theme: Customizr » Topnav links not working

  • Funkan

    (@funkan)



    `As the topic says, I can’t get my top level links to work. In my main nav I only put the top level links (no sublevels at all), and I then use a widget to show all the sub level links in the sidebar.

    I understand it is a feature in the theme, so I tried the code snippet (http://www.themesandco.com/snippet/menu-hover-dropdowns-parent-links-mobile-friendly/) following the instructions without any results.

    I have a child theme, with an empty functions.php (except for the starting tag) and nothing happens. I even tried to put it in the parent theme and then the theme breaks. Of course the css is in the right place to.

    I have the latest version of the theme and WP. I do not use any other plugins to create dropdown menus, and I even tried to inactivate all my plugins during the test.

    Any ideas?

    Regards,
    Johanna

Viewing 5 replies - 1 through 5 (of 5 total)
  • acub

    (@acub)

    Funkan, can you please provide a link to your website?

    Funkan

    (@funkan)

    Unfortunately i only have a local installation at the moment. I am able to put it up on a server with an IP address to access it, but I would prefer not to show it publicly. I would happily send it by e-mail to you, if that is an option.

    acub

    (@acub)

    No, we’re not allowed to make private contact. WP only hosts themes with free support, hence forbids any private means of contact.
    There was a time when they allowed it and theme owners abused it in order to request payment for support, so even if it seems a bit harsh, their position is understandable.

    The irony is that it’s a severe limitation for people like me, who do it without ever asking anything in return. I sometimes lose a lot more time trying to explain some simple steps to someone who doesn’t know their way around WP than I would if I had access to their installation.

    Funkan

    (@funkan)

    Ok, I didn’t know that. I guess it would be clear if I’d read the rules a little bit more carefully, but I’ve never come across that before. But yes, understandable…

    So I guess we’re back to square one then… At the moment a just made a workaround, making the menu out of links instead, linking to the original top level pages. In that way, they don’t have any child pages and they will work.

    I think it is something the theme owner maybe should consider changing, it should be up to every page owner to make that decision… Depending on how you make the navigation work, there might be a point in having the top level clickable even with child pages. And like in my case, when I only chose the parent pages in the navigation they still behave like they have child pages in it.

    acub

    (@acub)

    That snippet was intended only for making parent links clickable, while allowing mobile devices to open the submenus using a caret, nothing else. I never thought someone would install it on a single level menu and, besides, it shouldn’t have any impact on a single level menu.

    As for the theme owner’s consideration, this theme was built on tweeter Bootstrap 2.3.2. It was quite logic to use the tB 2.3.2 menu with it’s well known limitation (links stripped from parents because mobile devices cannot hover, hence they can’t open submenus other than by click).

    However, if you don’t want to use the default menu, you can disable it with

    add_filter('tc_menu_display', 'disable_main_menu');
    function disable_main_menu($output) {
    	return;
    }

    and register/build/style your own using register_nav_menu() and wp_nav_menu(), the default functions for registering and displaying menus in WordPress.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Topnav links not working’ is closed to new replies.