• Resolved 4blkstars

    (@4blkstars)


    On mobile, for example, an anchor link doesn’t work – is there a working code that allows it to jump to different parts of a page?

    a regular link to a page on the site works fine. This brings the assumption the link code js script needs adjustment to allow anchors to function like it normally would if it wasn’t in the mobile menu view ?

    • This topic was modified 1 year, 9 months ago by 4blkstars.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @4blkstars,

    This should be supported in version 1.9.2, which was just released. Can you give it a try and let me know?

    — Anders

    Thread Starter 4blkstars

    (@4blkstars)

    @anlino,

    There is a behavior issue. If there is a sub’menu, when its clicked the wrapper closes before the option to select a link. You have to open the menu again to select a sub-menu link

    Another Issue I noticed. (Possibly on my end) anchors are clickable but they freeze the screen, making it impossible to close the wrapper.

    Theme Author Anders Norén

    (@anlino)

    @4blkstars Ack, silly oversight on my part. I’ve fixed the issue with the sub navigation toggle in 1.9.3.

    I can’t reproduce the latter issue, though. Can you post a link to a page where that occurs for you?

    Thread Starter 4blkstars

    (@4blkstars)

    @anlino that fixed the problem!

    Perhaps a better alternative, How can one call a different menu in place of the main one on a off canvas with menu?

    Theme Author Anders Norén

    (@anlino)

    @4blkstars A separate menu used only on the blank canvas page, you mean? That would be a little tricky. You’d need to:

    1. Register another menu area in a child theme.
    2. Add a function hooked to the wp_nav_menu_args filter.
    3. In that function, check if the theme_location is set to main AND the current page is the page you want a separate menu for, and if both are true, set theme_location to the menu area you registered in step one and return the updated $args variable.
    Thread Starter 4blkstars

    (@4blkstars)

    Ok Good to know thats possible! I changed the direction to adding a custom menu to an off-canva without menu template – could that work?

    Theme Author Anders Norén

    (@anlino)

    @4blkstars Oh, I see. Sure, you can just add links or buttons with anchor links to the page content and handle the page navigation that way.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Off-canva menu Error’ is closed to new replies.