{"id":106144,"date":"2011-08-12T08:00:00","date_gmt":"2011-08-12T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/majpage-menu-class-extender\/"},"modified":"2019-09-08T20:21:00","modified_gmt":"2019-09-08T20:21:00","slug":"majpage-menu-class-extender","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/majpage-menu-class-extender\/","title":{"rendered":"MAJpage Menu Class Extender"},"content":{"rendered":"<p>This simple plugin was written to add classes to first, last, parent, even and odd elements of wp_page_menu and wp_nav_menu to support recognizing it in older browsers without :first-child, :last-child and :nth-child supporting.<\/p>\n<p>Plugin adds the following classes to menu <\/p>\n<li> tags:<\/p>\n<ul>\n<li>\u201cfirst-menu-item\u201d to every first child of\n<ul> or <\/p>\n<menu> tag,<\/li>\n<li>\u201clast-menu-item\u201d to every last child of\n<ul> or <\/p>\n<menu> tag,<\/li>\n<li>\u201cparent-menu-item\u201d to every child of\n<ul> or <\/p>\n<menu> tag that has another <\/p>\n<ul> or <\/p>\n<menu> tag inside (a parent to another menu level),<\/li>\n<li>\u201codd-menu-item\u201d to every odd child of\n<ul> or <\/p>\n<menu> tag, including first and\/or last child,<\/li>\n<li>\n<p>\u201ceven-menu-item\u201d to every even child of <\/p>\n<ul> or <\/p>\n<menu> tag, including first and\/or last child.<\/p>\n<p>Above classes are added separately to each menu level. Plugin use SimpleXML extension and requires PHP 5 or higher. Menu should have valid XHTML code.<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Adds classes to first, last, parent, even and odd elements of wp_page_menu and wp_nav_menu.<\/p>\n","protected":false},"author":65,"featured_media":304794,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"MAJpage Menu Class Extender - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Adds classes to first, last, parent, even and odd elements of wp_page_menu and wp_nav_menu."},"footnotes":""},"categories":[1],"tags":[1646,356,157,17532,30139],"class_list":["post-106144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-classes","tag-menu","tag-tags","tag-wp_nav_menu","tag-wp_page_menu"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/106144","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=106144"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/106144\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/304794"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=106144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=106144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=106144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}