OnPoint Plugins

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

Styling Navigation Menu as breadcrumbs

Resolved

Requested: 1 year and 7 months ago

Is there a way to use or style a sidebar navigation menu widget as breadcrumbs?

I’d like to be able to just build my navigation and set the hierarchy with “Appearance > Menus” rather than relying on our SEO plugin (SEO Press Pro) and having to manually set parent/child relationships on every single page.

Any ideas would be most appreciated!

 

Plugin: Advanced Sidebar Menu

  1. OnPoint Plugins

    1 year and 7 months ago

    Hi Les,

    Certainly, you may style your widget to match the site’s breadcrumbs using the following custom CSS.

    Have a great day!

  2. Les Lee

    1 year and 7 months ago

    Thank you so much for the styles, that is very helpful indeed and gets me part of the way there.

    What settings would I need to use on the widget itself to show:

    “Home » Parent Page » Current Page Only”

  3. OnPoint Plugins

    1 year and 7 months ago

    Hi Les,

    If you add the following filters to your active theme’s functions.php file, the menu will only display:

    1. The current page.
    2. The current page’s direct parent.
    3. A link to the “Home” page.

    Have a great night!

  4. Les Lee

    1 year and 7 months ago

    That code works brilliantly! Thank you.

    One last related, request: Since the site we’re working on goes pretty deep, is there a way to have 3rd, 4th, 5th, etc. levels show in the “breadcrumb” string?

    e.g. “Home » Parent Page » Parent Page » Parent Page (etc.) » Current Page”

    Thank you so much for the excellent help!

  5. Les Lee

    1 year and 7 months ago

    Actually looks like when I go to the a second level item (e.g. About) I’m getting an error.

    https://edot.mysites.io/about/

    https://prnt.sc/1mhgyo9

     

     

  6. OnPoint Plugins

    1 year and 7 months ago

    Hi Les,

    I have adjusted the filters to support an unlimited number of parents above the current page.

    I also wanted to mention to be sure to have “Display the current item’s section only” checked if you don’t want the widget to show up on pages which are not included in the menu.

    Have a great night!

  7. Les Lee

    1 year and 7 months ago

    This is excellent and most appreciated!

    Thank you so much for the action and filter code. And thanks for the tip on the setting as well.

    Have a great rest of your week!

     

     

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