Toggle CSS Classes

Adding and removing CSS classes on HTML elements is another fairly common action. This is one technique you may consider […]

Read More

Common Selectors

// get element by id $(“#ElementID”).whatever(); // get element by css class $(“.ClassName”).whatever(); // get elements where id contains a […]

Read More

Add parent page slug to body_class

/*************************************************************** * Function body_class_section * Add the top level page to the body class for coloured sections ***************************************************************/ add_filter(‘body_class’,’body_class_section’); function […]

Read More