Create self-populating menu and add extra divs to the menu layout

Your html structure should look like <ul class=”parent-class”> <li>Page 1</li> <li> <ul class=”child-class”> <li> Sub menu item 1</li> <li> Sub menu item 2</li> </ul> </li> </ul> WordPress should automatically add an “active” class to the active page then you should be able to style everything with css. Something like .parent-class li ul { Display:none; } … Read more

Cutomize Colors utility: How to add more configurable colors to a theme

So I wrote down the whole process of how I found the answer myself, hope it’s useful to someone (assumes basic unix and programming skills). Finding where the current color options are defined: grep -ir ‘Header and Sidebar Text Color’ . ./wp-content/themes/twentyfifteen/inc/customizer.php: // Add custom header and sidebar text color setting and control. ./wp-content/themes/twentyfifteen/inc/customizer.php: ‘label’ … Read more