Skip to content

Instantly share code, notes, and snippets.

@akther80
Last active March 10, 2019 18:54
Show Gist options
  • Save akther80/bea04e2711947096ae93fa1df0a91767 to your computer and use it in GitHub Desktop.
Save akther80/bea04e2711947096ae93fa1df0a91767 to your computer and use it in GitHub Desktop.
Tokoo - Rearrange header icons position
add_action( 'init', 'tk_child_rearrange_header_icon_position' );
function tk_child_rearrange_header_icon_position() {
remove_action( 'tokoo_header_icons', 'tokoo_header_cart' );
remove_action( 'tokoo_header_icons', 'tokoo_header_wishlist' );
remove_action( 'tokoo_header_icons', 'tokoo_header_user_account' );
add_action( 'tokoo_header_icons', 'tokoo_header_user_account', 10);
add_action( 'tokoo_header_icons', 'tokoo_header_cart', 20 );
}
.header-cart-dropdown-menu::after, .header-cart-dropdown-menu::before {
right: 5%;
}
.header-cart-dropdown-menu {
right: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment