OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
    • Go Live Update Urls
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
  •  
← Back to support

Anchor ID menu styling

Resolved

Requested: 10 months and 3 hours ago

I have a menu with anchor ids. Each item is to scroll to that section of the page. The ‘current’ item is styling all of the anchors instead of just the one anchor. 

Plugin: Advanced Sidebar Menu

  1. OnPoint Plugins

    10 months and 1 hour ago

    Hi Holly,

    Because all the anchors point to the same page (the current page) they are receiving the current-page-item class and therefore the ‘current’ styles. As this plugin has no way of knowing which anchor might be the current one, it is unable to differentiate between them.

    Have a great night!

    Mat Lipe

  2. Holly Butler

    9 months and 1 week ago

    I’m having trouble with the accordion staying open when on a child page: http://box5717.temp.domains/~soberven/test/how-it-works/

  3. OnPoint Plugins

    9 months and 1 week ago

    Hi Holly,

    If you un-check “Keep all accordion sections closed until clicked” the menu will open to the current level when the page loads.

    Have a great weekend!

    Mat Lipe

     

  4. Holly Butler

    9 months and 1 week ago

    Ok but I don’t want the accordions open until clicked and then I want the accordion to stay open if on the child page. Is this possible?

  5. OnPoint Plugins

    9 months and 1 week ago

    If you add a little Custom CSS to your site the icons will hide when the menu is open which will prevent the accordion menus from being closed after being opened. You may then leave “Keep all accordion sections closed until clicked” checked.

    This will only target the menu when on a child page.

     

  6. Holly Butler

    9 months and 1 week ago

    Thank you for you quick response!

    That isn’t working for me. When going to a child page the accordion isn’t opened?

  7. OnPoint Plugins

    9 months and 1 week ago

    Here is a screen cast if what I am seeing:

    1. Are you seeing something different?
    2. Is this something different than what you are requesting?

     

  8. Holly Butler

    9 months and 1 week ago

    When the viewer goes to the ‘how it works’ page, I would like the accordion to already be open so they can see their active place in the navigation. In your screencast, the viewer has to open the accordion to see that they are under Program Services.

  9. OnPoint Plugins

    9 months and 1 week ago

    From what I understand, all you need to do now is un-check “Keep all accordion sections closed until clicked” and everything will work as desired.

    Have a great weekend!

    Mat Lipe

  10. Holly Butler

    9 months and 1 week ago

    No, if I uncheck that option, when you go to any page all of the accordions are open. I only want the accordion to be open when you go to the child page.

  11. OnPoint Plugins

    9 months and 1 week ago

    You may accomplish this by adding the following filter to your active theme’s functions.php file:

    Afterward, the widget setting will be ignored and be automatically set depending if you are on a child page or not.

     

  12. Holly Butler

    9 months and 1 week ago

    Getting this error when adding after other function in file.

    syntax error, unexpected ‘<‘, expecting end of file

  13. OnPoint Plugins

    9 months and 1 week ago

    This is mostly likely caused if there is an extra <?php tag being added because it’s after a previous one.

    Please try adding it without the <?php line.

Respond Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

© 2021 OnPoint Plugins · WordPress Development · Privacy Policy · Terms Of Service · Log in