Created
December 8, 2022 23:20
-
-
Save genesis16/0d21cefebd0d3e5648ebb388962428c0 to your computer and use it in GitHub Desktop.
Jquery add logo to center of header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
var url = 'https://alphadevsite2.co/wp-content/uploads/2022/09/EH-Logo_Gradient.png'; | |
$(document).ready(function() { | |
var img = new Image(); | |
img.src = url; | |
$('li#nav-menu-item-6200').after("<li class='menu-logo20'><a href='https://alphadevsite2.co/' class='main-logo-link' style='width:auto;'></a></li>"); | |
$('.main-logo-link').html(img); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment