Changing Position of Cart & Search Box
-
Hi,
I wanted to move the cart area up and inline with the search box in the header.
I managed to achieve this by using the following code:remove_action( 'storefront_header', 'storefront_header_cart', 60 ); add_action( 'storefront_header', 'storefront_header_cart', 35 );
This works, however it also leaves the original cart in place too, so I managed to remove this by using this code:
add_action( 'init', 'jk_remove_storefront_cart' ); function jk_remove_storefront_cart() { remove_action( 'storefront_header', 'storefront_header_cart', 60 ); }
Is this the best way to achieve this as it appears I am having to remove the cart twice?.
thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Changing Position of Cart & Search Box’ is closed to new replies.