• Resolved teeray

    (@teeray)


    Wondering if anyone can offer any insight into a weird menu issue I’m having.

    On certain pages, instead of listing the page name, the menu is actually showing a string that’s related to the site name, but isn’t the site name. I can’t even work out where it’s being generated from.

    No matter if I change the menu, or replace it, or delete it and create a new one, it’s doing this on certain pages. No differences on which template is used.

    Has anyone ever encountered anything like this?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Please provide us a link to your site. A text description does little in helping us help you.

    Thread Starter teeray

    (@teeray)

    Completely understood. I was hoping I’d get away with describing the issue really, really well so as not to compromise the project. In the end, though, troubleshooting this issue is the most important thing.

    Site is: https://unfffp.volumesquared.com
    Pages where occurring: https://unfffp.volumesquared.com/about/unff/ (for instance)

    You’ll notice it occurring on the footer menu, and I just realized that the issue is that it is echoing the page name for the page, not the link name that has been set in the menu (each item on the menu is an external link)

    Site has buddypress, events manager and WPML installed among other (less major) plugins.

    I’m not seeing this issue with the footer menu items not being correct. I was clicking around on a few of the pages, but can’t seem to find a page where its happening.

    It looks like the footer menu is working correctly for me. It is very possible there is a conflict with WPML or something similar. I’ve had issues in the past with that plugin on a few client sites.

    Thread Starter teeray

    (@teeray)

    Hmm. Not even on the example link I showed you?

    https://unfffp.volumesquared.com/about/unff/

    I should point out, the footer menu is at the VERY bottom. Where it says Copyright | Terms of Use, etc

    Could be that WPML is the culprit, but unfortunately I can’t test as uninstalling breaks the site. Sigh.

    Is there something wrong on this page or in the footer?? I could just be missing it (screenshot below)

    https://www.diigo.com/item/image/4s1ed/dxan

    Thread Starter teeray

    (@teeray)

    Yes. See actually under the yellow section of the footer – where the copyright statement generally would be – there is a line of links?

    On all other pages, these links are different items. On this page (and some others), it is a repetition of the page name for each link. The links themselves are correct, however the link titles are not.

    Ah I completely missed that, sorry about that.

    How are you creating those items? Custom function, menu item?

    Thread Starter teeray

    (@teeray)

    It’s a WP Menu – register_nav_menus

    And have you set it up to display on the front end, or was all of this set up by the theme author?

    I only ask because it looks like a variable is being re-used to generate those links at the bottom but its conflicting with the current page title. So instead of pulling the correct page titles within a loop, its just pulling the page title from the currently viewed page.

    Thread Starter teeray

    (@teeray)

    Thanks for your help with this. I am the theme author, so I have set up the menu using register_nav_menus as is usual.

    I have been exploring whether this is a conflict with Events Manager, as they note on their site that sometimes nav menus get rewritten on events pages. However this is not an events page – and following their instructions in settings seems to have done nothing.

    Any other troubleshooting suggestions are most welcome and incredibly appreciated!

    Thread Starter teeray

    (@teeray)

    Oh, and needless to say that the menu was set up by the theme author!

    Can you provide the code you are using the generate the links in the footer? Maybe use paste bin because I’m sure it’s semi-long.

    Thread Starter teeray

    (@teeray)

    Not very long at all.

    in functions.php:

    register_nav_menus(
    array( 'main-menu' => __( 'Main Menu', 'UNFFFP'),
           'news-menu' => __( 'News Menu', 'UNFFFP'),
           'events-menu' => __( 'Events Menu', 'UNFFFP'),
    	   'footer-menu' => __('Footer Menu', 'UNFFFP')
    	   )
           );
    }

    in footer.php:

    <?php wp_nav_menu( array(
    					 'theme_location' => 'footer-menu',
    					 'container' => '',
    					 'menu_class' => 'footer-nav',
    					 'after' => '',
    					 'depth' => 1
    					 ) ); ?>

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Weird Menu Issue’ is closed to new replies.