Skip to content

Instantly share code, notes, and snippets.

@gwelser
Created October 27, 2017 13:49
Show Gist options
  • Save gwelser/a45afa89b6c2d188fa5c0615c7a77ee5 to your computer and use it in GitHub Desktop.
Save gwelser/a45afa89b6c2d188fa5c0615c7a77ee5 to your computer and use it in GitHub Desktop.
Reposition Divi Split Menu Logo
(function($){
setTimeout(function(){
var $og_logo = $('.centered-inline-logo-wrap');
var $logo = $og_logo.clone();
$og_logo.prev().before($logo);
$og_logo.remove();
$('body').removeClass('hide-logo');
}, 1000);
})(jQuery);
@gwelser
Copy link
Author

gwelser commented Oct 27, 2017

Use if you need to reposition the centered logo in a Divi menu. Assumes you have filtered in a body_class of hide-logo that uses display: none; to hide the logo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment