Created
December 14, 2017 12:06
-
-
Save kharissulistiyo/4e6517f6c0a69873cf1d6a2f4d7a46a3 to your computer and use it in GitHub Desktop.
Sydney Pro: JS code to move default WC menus location.
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
;(function($) { | |
'use strict' | |
if( $('.header-contact-info').length ) { | |
var cartMenu = $('.mainnav .nav-cart'); | |
var accountMenu = $('.mainnav .header-account'); | |
$('.header-contact-info').prepend('<ul class="header-contact-menu"></ul>'); | |
cartMenu.remove().clone().prependTo('.header-contact-menu'); | |
accountMenu.remove().clone().insertAfter('.header-contact-menu .nav-cart'); | |
contactMenu.insertAfter('.header-contact-menu .header-account'); | |
} | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment