Get in touch: 0414 547 586
Matt@emptyhead.com.au

Highlighting in WordPress Menus, current pages and parent pages

This is another post written because I was struggling for a while with an issue, so I thought I would post my solution here. Often on a WordPress site you want to have a menu that highlights the current page. Assuming you are using the WordPress custom menus, then WordPress is smart enough to add classes to the menu items that represent where they fit in the scheme of things. For instance: li.current_page_item = The page that you are currently on (Obviously) li.current-post-ancestor = Any page above in the hierarchy of the current... Read The Rest →

Using less.js with WordPress

Over the last few weeks I have been reading more and more about speeding up your workflow by using augmented CSS. For those of you not familiar with LESS, or {less} as its branding suggests, it is a ‘Dynamic stylesheet language’. Allowing you to use variables, mixins, operations and functions with in your CSS. There are plenty of article preaching the advantages of using less. There are a couple of different flavours of LESS. Server side, an osx app (LESS.APP) and a client side alternative, using less.js. Most of my... Read The Rest →