Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Want to visible submenu on its active page in WordPress

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #36053
    shaifshahin
    Participant

    I clone a site into wordpress, But having problem with submenu,
    http://facebookmenupages.com/product/

    in this page when hove on product link the sub menu is displayed, but after moveout the cursor sub menu disappeared. But i want to make it visible after move out cursor, that means active page submenu will be visible on it page. how can do that. original site is http://www.payvment.com/products/

    #94389
    TheDoc
    Member

    You could do this:

    .current-menu-item .sub-menu { display: block; }
    #94471
    shaifshahin
    Participant

    thanks, Mostly working When the page first load on product page, when i move mouse to about page & after that move out mouse, the product page submenu not showing again. Which is showed on original site http://www.payvment.com/products/

    #94484
    hoamca
    Member

    at http://www.payvment.com/products/ for product link using same submenu like other link with display: block but when u hover on another link, it turns their display: hidden to block which covers Product’s submenu links.
    As I dont know how your codes works, i cant help more about codes.

    #94593
    shaifshahin
    Participant
  • is contain .current-menu-item class, so if i add here another class called “open” using jquery , then the menu will work,
    I add this code on header, but its not working

    $(‘.current-menu-item’).addClass(‘open’);

#240920
futurelink
Participant

I am trying to do the same thing on http://divepromarketing.com I am using Divi theme with a child theme for css edits. I have tried a bunch of different edits but none of them make the sub menu visible.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.