Don't want main categories on menu bar to be click-able
I have a menu bar at the top of my site (www.trywine.net/wordpress) with a few categories (like Writings) with sub categories (Articles and Newsletter.) I want readers to be able to click on Articles and Newsletters and have them go to those pages, but I don't want the site to take them to the general Writings page. How can I make that not clickable, and just a title, I guess? Thanks!
|
I'm looking for an answer to the same question - to make my drop-down menu items clickable, but the main menu item above that drop down a "non-page." I have several menu items with no drop-downs, only menu item "Products" has a drop-down below it.
|
Never mind, I just found the trigger in the obvious place - under "Page Menu Bar."
I need to seriously get more sleep. :( |
Don't want main categories on menu bar to be click-able
The solution describes how to do for PAGE menu bars, but the initial question was related to CATEGORY menu bars.
So please let me ask again how to disable the link for first level parent items in category menu bar? Are there any plans to add the "Don't link first level parent items in Page Menu Bar?" feature for categories as well? Thanks in advance! |
You could look at the code in bfa_hor_pages.php and see if you could get it to work in bfa_hor_cats.php
That is a good suggestion about adding it to the 'Category Menu Bar', hopefully Flynn wil do it. If you get the code to works, please publish it and I'll, point flynn at this post. |
Hi juggledad, that's very difficult for a non coding noob like me. Here's what I tried out:
The controlling funktion in bfa_hor_pages.php seems to be this one: Code:
if ( $bfa_ata['page_menu_1st_level_not_linked'] == "Yes" ) { Code:
$bfa_ata['page_menu_1st_level_not_linked'] Code:
$list_cat_string = wp_list_categories('orderby=' . $sort_order ... Code:
$list_cat_string = preg_replace("/<li class=\"(.*?)><a href=\"(.*?)\"(.*?)\n<ul>/i","<li class=\"rMenu-expand \\1><a href=\"#\" onclick=\"return false\"\\3\n <ul class=\"rMenu-ver\">",$list_cat_string); |
Quote:
|
I too would like to see a check box solution for the category menu, like the pages menu has, for not linking parent items, unless it has no children.
But in the meantime, I need a solution now that will work. Switching to pages instead of posts is not an option. Thank you for your swift response. Silverthread |
has anyone got a fix for this please?
I can't get the latest version of Atahualpa but I have the version before that. Please tell me what to do to get top level parent category items non clickable. |
All times are GMT -6. The time now is 04:31 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.