Last active
March 10, 2019 18:54
-
-
Save akther80/bea04e2711947096ae93fa1df0a91767 to your computer and use it in GitHub Desktop.
Tokoo - Rearrange header icons position
This file contains hidden or 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
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 ); | |
} |
This file contains hidden or 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
.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