Currently Browsing The jQuery Tag

Adding a sticky header to your WordPress theme

Posted on 21st June, 2014 Leave a Comment

Sticky headers have been popular for quite a while now, I think this is due to the increase in mobile traffic to websites. As pages become narrower they also become much longer, so a sticky-nav is quite a nice thing. I’m sure that there are quite a few of these tutorials online, but for me…

Include jQuery into your theme through the functions.php

Posted on 21st August, 2013 Leave a Comment

Over time I’ve realized that there is a better way to include jQuery. Rather than adding your jQuery straight into the header.php or footer.php of your theme files which can be untidy, I would recommend adding a function to your function.php which is a lot neater. So open the functions.php scroll to the bottom and…