WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
Dropdown navigation breaks using AJAX Links (2 posts)

  1. tavitar
    Member
    Posted 1 year ago #

    Hi,

    When 'AJAX links' is selected in the theme options and after clicking 'Load more posts' the drop down navigation no longer works.

    I noticed that 'opacity: 0' is added to the style of sub-menu preventing it from showing.

    Can anyone confirm this?

    Cheers,
    David

  2. tavitar
    Member
    Posted 1 year ago #

    If anyone is wanting to use the Ajax Links for navigation without breaking their menu, here's a workaround:

    Put the following into the custom css:

    .sub-menu-opacity-fix {
        opacity: 1 !important;
    }

    Place the following into functions.php at the start of the function 'nav_link.click(function() {'
    $('.sub-menu').addClass('sub-menu-opacity-fix');

    You lose the fade effect of the sub-menu after clicking more posts, but it's much better than losing the sub-menu altogether!

    Cheers,
    David

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.