• Resolved wanderer

    (@bluegeek26)


    This plugin (v9.3.1) works great, except for one thing.

    I tested this on fresh WordPress installations (4.5.1 and 4.4.2) using standard/default themes (Twenty Fifteen and Twenty Sixteen), with only this plugin activated.

    I want only the current page marked (with blue color), not Home. See here.

    In Accordian Menu settings, go to Advanced parameters > Active. Below Active is Opened. I left Opened set as “Active branch”.

    In Active, I tried all three options and nothing changed after each save. The parent in the branch is always marked blue, like the current page.

    The parent has a different URL than the current page, so there shouldn’t be a conflict. I also toggled on/off Basic parameters > “Parent items as link”, but that didn’t solve the problem.

    Do you think you can fix this? Or am I missing something? I don’t want my visitors to get confused as to what page they’re on, if two menu items are blue at once. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ramona

    (@nextend_ramona)

    Hi @bluegeek26

    The parents are getting the active color because they are opened to show the submenu inside them, so they are indicating what is the page the user is currently seeing.
    It is not based on the URL, but on the menu item’s position within the menu, and the menu was made this way.

    You might try to do some custom JavaScript coding and change the font color of the currently viewed page’s link yourself, but that won’t be so easy thing to do.

    Thread Starter wanderer

    (@bluegeek26)

    Hey @nextendweb_ramona

    Yes it’s not necessarily based on the URL (and can be menu item’s position within the menu, as you say). What I did was cover all the bases, the “what if’s”. Do you understand now?

    The tooltip for Advanced parameters > Active shows:

    The current page is active highlighted. You can disable, mark active only the current page(item) or mark the current page and it’s parents(branch).

    Each corresponds to the options: (1) Disabled, (2) Item, (3) Branch

    The boldfaced part is what I’d like. As of version 9.3.1, based on the fresh installation tests I did, your plugin appears to be bugged — it’s forever frozen as (3).

    What I’m seeing now no matter which option I choose is the italicized part (third option, called “Branch” = mark the current page and it’s parents).

    Why are (1) and (2) not working? That’s all I’m asking. (2 – Item – Mark active only the current page) is part of the plugin’s functionality, after all.

    (2 – Item – Mark active only the current page) and (3 – Branch – Mark the current page and it’s parents) are two available options. Your reply supports (3), but forgets that (2) exists.

    Have you tried to see if (2) works? Cheers

    Plugin Author Ramona

    (@nextend_ramona)

    Hi @bluegeek26

    I understand what you mean now, sorry for the misunderstanding.

    It seems that the opened class is being colored at the wrong place, so
    please open up this file:
    \wp-content\plugins\nextend-accordion-menu\themes\default\default\style.less
    and search for “opened”. The second result will look like this:

    &.opening,
    &.opened,
    &.active{
        span.inner span,
        a{
            &,
            span{
                d: e(~"@{level@{index}font-active}");
            }
        }
    }

    and from here, you should remove the line which contains the “opened” word, so it should look like this:

    &.opening,
    &.active{
        span.inner span,
        a{
            &,
            span{
                d: e(~"@{level@{index}font-active}");
            }
        }
    }

    When you are done, go back to your menu and save on it to create new cache files which are using this setting.

    Now it should work now as you would like it to work.

    Thanks for reporting the problem! (We’ll put this to the next version, so it will work like this from now on.)

    Thread Starter wanderer

    (@bluegeek26)

    Hi @nextend_ramona

    That fixed it! Thanks so much. I can confirm that all three options work now. You’re a real pro, and keep up the good work. ??

    Btw, you’re welcome too. Glad to help with reporting the problem.

    Plugin Author Ramona

    (@nextend_ramona)

    Hi @bluegeek26

    I’m glad to hear it is working correctly ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘"Advanced parameters > Active" not working’ is closed to new replies.