OnPoint Plugins

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

Open accordion when clicking link instead of icon

Resolved

Requested: 2 years and 9 months ago

I have several category widgets, and I love the appearance. However, I want to be able to disable the category name from being a link.

Example:

Letters to Adrian (widget title)
Introduction (Cat 1) +
Post
Post
Before Letters (Cat 2) +
Post
Post

In this example, I like the structure. But I want the Category names to not be a link. I only want the posts to be a link. Is it possible to disable the linking from the category names? I am fine with disabling for the entire plugin on my site.

Plugin: Advanced Sidebar Menu

  1. OnPoint Plugins

    2 years and 9 months ago

    Good Morning Miranda,

    The most straight forward way to accomplish this would be to make the accordion menus open/close when the categories are clicked on. This may be accomplished with some custom JavaScript:

    Have a great day!

    Mat Lipe

     

  2. Elizabeth Hernandez

    2 years and 9 months ago

    Hi, thank you so much! Could you please tell me where I should paste this? I know how to get into the editor, but I’m not sure where specifically to paste the code.

  3. OnPoint Plugins

    2 years and 9 months ago

    1. Most themes will have their own way of adding custom JavaScript to the site.
    2. There are also many plugins which will allow you to do the same.

    If you prefer to add the JavaScript directly, it may be done by adding the following code to your active theme’s functions.php file:

  4. Miranda Hernandez

    2 years and 9 months ago

    Thank you!

  5. OnPoint Plugins

    1 year and 7 months ago

    Hi Miranda,

    I wanted to stop in to let you know PRO version 8.4.0 is now available which includes widget options for using links as open/close. You may now use the widget options instead of the custom JavaScript.

    Documentation is here.

    Enjoy!

New Response Cancel reply

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

© 2023 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact