Remove Parent Category
-
I have a menu with parent items and then dropdowns. The parent items are just placeholders that don’t have a page. I would like to remove the link from the menu parent. The menu looks like:
parent item
child
child
childI would like parent to be disabled. The dev site is located at:
http://vmendella.com/dev/cscm-wp/
Please let me know what I can do to get this working.
-
You’ll want to hook into the
bcn_breadcrumb_urlfilter, and returnNULLrather than the URL for your placeholders. Checkout this post on an example usingbcn_breadcrumb_urlfor a slightly different purpose but it will give you an idea of how to use it: https://mtekk.us/archives/guides/link-to-a-page-rather-than-the-category-archive-in-a-breadcrumb/Thanks John for the response. However I am really new to WP and having trouble understanding this.
Here is a link to a new article that is more tuned to what you need to do: https://mtekk.us/archives/guides/remove-the-link-in-a-breadcrumb/
Perfect this sounds exactly like what I need. I do have one question. As I said I am really new to WP and am not sure what you mean by
“site specific plugin”
Hi there,
I was able to make a site specific plugin and placed the code. What I want is for the top level menu item to be not linkable. For instance if we had a menu item of Who we are with child items of people, places and things. I don’t want the user if in the people page to be able to click on the Who we are in the breadcrumb.
I don’t want them to be able to go to another page.
I put in the code you specified but it won’t work for more than 1 page. I need it to work for than one menu item.
Menu is:
Who we are, sports, athletes, Services, Sciences and What’s Happening.These all have dropdowns and in the breadcrumbs I don’t want a link to the menu parent.
this works perfectly now. Thank you so much.
The topic ‘Remove Parent Category’ is closed to new replies.