Plugin / Ambrosite Unlink Parent Categories

J. Michael Ambrosio

Frequently Asked Questions (FAQ)

Unlink Parent Categories only affects the output of wp_list_categories. If your menu is not being generated by that functions, then the plugin will not work. If you want to test whether this is an issue with your menu, put the default ‘Categories’ widget into your sidebar. The Categories widget uses wp_list_categories, so if the parent categories are unlinked there, but not in your navigation menu, it means that your menu is not using wp_list_categories.
You must set the ‘taxonomy’ parameter of wp_list_categories in order to generate a list of custom taxonomy terms, as explained in the WordPress Codex: https://codex.wordpress.org/Template_Tags/wp_list_categories#Display_Terms_in_a_custom_taxonomy Once the taxonomy parameter is set, the plugin will unlink the parent terms in the list, just as it does with normal categories. You can also set a custom taxonomy for the default Categories widget, by putting the following code into functions.php: function wc_args( $cat_args ) { $cat_args['taxonomy'] = 'my_taxonomy'; return $cat_args; } add_filter('widget_categories_args', 'wc_args');
If you uncheck ‘Use Dummy Links’, the plugin will unlink the parent categories by replacing the anchor tags with span tags. In some themes, this may cause styling problems if there are CSS selectors targeting the anchor tags that have been removed. In order to fix this, you must add an additional selector to any rule that targets the anchor tags. The CSS rules are different for every theme, so I cannot give specific instructions. As a general example, if your menu styles look like this: #menu li a { some styles ... } Then you would need to add an additional selector which targets the span: `#menu li span,
some styles … }`

Ratings

2
1 reviews

Rating breakdown

Details Information

Version

1.0

First Released

03 Jul, 2011

Total Downloads

2,516

Wordpress Version

2.1 or higher

Tested up to:

3.2.1

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.