• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Nav menu link not working

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Nav menu link not working

This topic is: not resolved

Tagged: nav menu, parallax-pro

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago by braderz31.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 20, 2015 at 7:41 am #145013
    braderz31
    Member

    Hi

    I've been tearing my hair out with this issue. One of sites went live this morning and for some reason two of the links on the nav menu are not working. If you right click and open the link in a new window, they are fine - they are just not clickable from the homepage. The links even work fine when from the inner pages themselves, just not on the homepage.

    I don't think it's a permalink issue because I've done all the necessary cache clearing etc and it still doesn't work.

    Here is the site... it's the Blog and Donate button that does not work.

    I'm guessing there might be a div container or an element blocking the click through maybe?

    Any help is much appreciated

    Thanks

    Brad

    http://bare7x7challenge.org.uk/
    March 21, 2015 at 3:13 am #145068
    Victor Font
    Moderator

    It looks like you fixed the problem? The Blog and Donate links work fine.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 22, 2015 at 6:18 am #145185
    braderz31
    Member

    Hi Victor - thanks for checking.

    Bizarrely, I couldn't get those last two links working at all. I had to include a javascript snippet in the responsive-menu.js file to 'make' it work.

    I'm annoyed I had to hack it but I was running out of time.

    This is what I did in case anyone has this issue

    jQuery(".responsive-menu > .menu-item").click(function(event){
    		if (event.target !== this) {
    
    	    	var clickedUrl = event.target.href;
    	    	clickedUrl = clickedUrl.split('#')[0]
    
    	    	var currentUrl = window.location.href;
    	    	currentUrl = currentUrl.split('#')[0]
    
    	    	if (clickedUrl !== currentUrl) {
    	    		var t = event.target.getAttribute("target");
    	    		if (t == "_blank") {
    	    			if (window.location.pathname == '/') {
    	    				window.open(clickedUrl);
    	    			}
    	    		} else {
    	    			window.location.assign(clickedUrl);
    	    		}
    	    	}
    	    
    			return;
    		}
    
    		jQuery(this).find(".sub-menu:first").slideToggle(function() {
    		jQuery(this).parent().toggleClass("menu-open");
    		});
    	});
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble