How to create fa-bars animated menu

You provided the code you found online but none of the code from your theme or header.php or wherever it is that your hamburger menu launcher exists… …so, I’ll do my best… It’s most likely in your header.php, before the navigation is called, that you’ll find a link of some sorts… <a id=”mobile-nav” href=”#”><i class=”fa … Read more

I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php

Driss, I tend to break up css and javascript that’s specific to a template into files specifically for that template – that way if it’s not needed on every page, I’m not loading it and thus that allows me to keep my main.js and style.css smaller. Here’s how I normally do it: if( is_page_template( ‘room.php’ … Read more

Shrink Header Image on Scroll

So there’s two things we need to look out for here. We have to first make sure we specify to jQuery/javascript what it is that we’re selecting. In this code you are targeting the HTML header element and then also targeting ‘site-logo’ but jQuery can’t find an element named ‘site-logo’. <script> jQuery(document).ready(function($) { $(window).scroll(function () … Read more