feedback? color coded menu across posts and pages
-
someone else might find this handy. and someone else might be able to improve upon it (hopefully).
i’m trying to manage a section menu from within the header (which will eventually be horizontal) without needing to resort to includes to make it work across categories, and sub-categories (and posts) and pages and subpages.
so far i have this:
https://pastebin.com/397947and that works to make the menu on the child page
the same as the parent pageand the menu on the child category
the same as the parent categoryAND i can now have color-coding styles which i will name after the ‘nicename’ version of each top-level page or category… so
class="mycategory"
will match to a series of
.mycategory {
etc…
background : blue;
}but i’m still stuck on how to get something like the ‘current_page_item’ (which appears in the li class for the ‘current page’) into the li for the sub-categories.
any other links, tips, suggestions welcome.
- The topic ‘feedback? color coded menu across posts and pages’ is closed to new replies.