• The navigation works fine pointing to the correct urls until it is downsized to mobile (600px) then the links go to wrong urls. I have updated permalinks, deleted the menu and re-created it but nothing seems to fix it. The theme was created with _S.
    Anyone know how to fix this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try changing themes and see if it works.

    Thread Starter msteiger

    (@msteiger)

    It’s a custom theme I am creating with _S – I would prefer not to have to change to someone else’s theme as it is for my portfolio.

    the url: https://www.fenixwebdesign.com

    Since your site is behind a “coming soon” plugin, you could safely change themes temporarily just to see if it’s a theme-related problem.

    Are you calling wp_nav_menu() to display your menu? Are you using a custom nav walker? Have you tried temporarily disabling all plugins (except for your “coming soon” plugin), especially ones that might be altering the HTML output of your menu? Have you tried temporarily switching to a different permalink structure? Have you tried temporarily renaming .htaccess and then letting WP generate a new one (normally done by switching to a different permalink structure)?

    Thread Starter msteiger

    (@msteiger)

    I changed themes and it does work on another theme.

    I am calling the wp_nav_menu() I am not using a custom nav walker at this point. It was just the out of the box _S nav where I was starting to add css to. I tried changing the permalinks makes no difference. I deleted the .htacess then made new one as I went from local host to live (I had the problem on local host and thought maybe using the searchreplacedb2 might help fix it when I migrated and updated all the permalinks…no such luck.

    Still need to try disabling all the plugins. When I inspect the element it shows the right url for the dropdown item it’s just when you click it takes you to wrong page.

    What I think is happening is you’ve got so much top and bottom padding on the <a> tags in the mobile menu that the links are overlapping each other. It’s particularly noticeable if you start from below of the menu and move the cursor up: if you turn on your browser’s status bar, you’ll see that you can click on the “Contact” menu item while your cursor is still in the white space below the menu.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘mobile nav urls point to wrong pages’ is closed to new replies.