Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Restrict mobile menu to display top-level pages only #56731
    Kristin
    Member

    I would like to display only top level pages on tablets and phones. Anyone know the code edits I’d need to make?

    This it’s this code I’d be overriding??
    jQuery(“.menu-item”).has(“ul”).children(“a”).attr(“aria-haspopup”, “true”);

    in reply to: featured slider title & content position #55299
    Kristin
    Member

    You are amazing! I appreciate it!

    in reply to: Styling featured content titles on the home page #55292
    Kristin
    Member

    Thank you so much!!

    in reply to: Restrict mobile menu to display top-level pages only #55279
    Kristin
    Member

    Hi there- I’m still trying to figure this out.
    Anyone know js well enough to help?
    I’m trying to only display the top-level pages of my “secondary navigation” when viewing on mobile devices?

    in reply to: Restrict mobile menu to display top-level pages only #53006
    Kristin
    Member

    Or would it be this code from the allmenu.js file?

    I understand that I would make a copy in my child theme and not touch the original files. Just don’t know js well enough to do that.

    // Responsive Menu (Selectbox)
    jQuery(function () {
    jQuery(“.tinynav”).selectbox();
    });

    // Aria Haspopup for Touch Devices
    jQuery(document).ready(function () {
    jQuery(“.menu-item”).has(“ul”).children(“a”).attr(“aria-haspopup”, “true”);
    });

    in reply to: Restrict mobile menu to display top-level pages only #53005
    Kristin
    Member

    Ok, thanks. That’s a bit beyond me. Is this the code I’d be touching? Any help would be appreciated!

    // Responsive Menu (TinyNav)
    jQuery(“#hgroup-wrap .menu”).tinyNav({
    ‘active’ : ‘current-menu-item’, // String: Set the “active” class
    header: ” // String: Specify text for “header” and show header instead of the active item
    });

    // Responsive Menu (Selectbox)
    jQuery(function () {
    jQuery(“.tinynav”).selectbox();
    });

    // Aria Haspopup for Touch Devices
    jQuery(document).ready(function () {
    jQuery(“.menu-item”).has(“ul”).children(“a”).attr(“aria-haspopup”, “true”);
    });

Viewing 6 posts - 1 through 6 (of 6 total)