{"id":12142,"date":"2011-07-08T08:00:00","date_gmt":"2011-07-08T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/ambrosite-unlink-parent-categories\/"},"modified":"2011-07-13T02:33:00","modified_gmt":"2011-07-13T02:33:00","slug":"ambrosite-unlink-parent-categories","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/ambrosite-unlink-parent-categories\/","title":{"rendered":"Ambrosite Unlink Parent Categories"},"content":{"rendered":"<p>When activated, this plugin unlinks parent categories (that is, categories that have child categories underneath them in a hierarchy) in category menus and lists. It affects the output of wp_list_categories, as well as all plugins and widgets that use that function.<\/p>\n<p>The plugin works by turning the parent category links into \u2018dummy links\u2019. That is, it replaces the href attribute on parent menu items with a \u2018#\u2019 (hash\/pound) mark. A dummy link is just like a regular link, except that it leads back to the current page when clicked. The dummy links are given an inline style \u201ccursor: default\u201d to prevent the mouse pointer from turning into a hand when hovering over unlinked menu items.<\/p>\n<p>The plugin is compatible with custom hierarchical taxonomies. To create a list of custom taxonomy terms, you must set the \u2018taxonomy\u2019 parameter of wp_list_categories. See the FAQ for more information.<\/p>\n<h4>Options<\/h4>\n<p>To configure the plugin options, go to the Settings menu in the WordPress admin panel and click on \u2018Unlink Parent Categories\u2019.<\/p>\n<p><strong>Use Dummy Links<\/strong><br \/>\nIf you uncheck this box, the plugin will unlink the parent categories by replacing the anchor tags with span tags. In some themes, this may cause problems with CSS styling. In order to fix this, you would need to add an additional selector to any rule that targets the anchor tags (see the FAQ for more information). If you are not experienced in writing CSS selectors, then it is strongly recommended to stick with dummy links.<\/p>\n<p><strong>Unlink Current Category<\/strong><br \/>\nUnlink the current category, in addition to the parent categories.<\/p>\n<p><strong>Remove Link Titles<\/strong><br \/>\nRemove the title attribute from the links (stops the tooltip from popping up when the mouse hovers over the menu items). This doesn\u2019t have anything to do with unlinking parent categories, but it\u2019s something a lot of people want, so I decided to include it.<\/p>\n<p><strong>Unlink Specific Categories<\/strong><br \/>\nYou can specify which categories you want unlinked, using a comma-separated list of category IDs (example: 3,7,31). If you want <em>only<\/em> the specified categories to be unlinked, then check the \u201cUnlink specific categories only\u201d box.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unlinks parent categories\/taxonomies in category menus and lists. Useful for creating dropdown menus with top-level placeholders.<\/p>\n","protected":false},"author":65,"featured_media":233625,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Ambrosite Unlink Parent Categories - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Unlinks parent categories\/taxonomies in category menus and lists. Useful for creating dropdown menus with top-level placeholders."},"footnotes":""},"categories":[1],"tags":[811,11,4809,1965,4810],"class_list":["post-12142","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-categories","tag-category","tag-delink","tag-parent","tag-unlink"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/12142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=12142"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/12142\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/233625"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=12142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=12142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=12142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}