February 6, 2017
Different logo on homepage
Author:
@jetacid
Description:
If you do not want to make a custom header/menu just for the homepage and only want to change the logo image.
Kind:
jQuery
Javascript:
//declare jquery (function($){ //run after document is ready jQuery(document).ready(function(){ // select the .logo class img (change to suit your website), // only if the .home class is before it on the page, // Then change the src of the img to your new logo file. $('.home .logo img').prop('src','https://domain.com/wp-content/uploads/NewLogo.png'); }); })(jQuery);