Skip to content

Instantly share code, notes, and snippets.

@genesis16
Created December 8, 2022 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genesis16/0d21cefebd0d3e5648ebb388962428c0 to your computer and use it in GitHub Desktop.
Save genesis16/0d21cefebd0d3e5648ebb388962428c0 to your computer and use it in GitHub Desktop.
Jquery add logo to center of header
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