Created
November 17, 2020 11:19
-
-
Save yousufansa/62edbaa44ffda8f929911dca9ac3e9c1 to your computer and use it in GitHub Desktop.
Bookworm - Fix Cart Overlapping Offcanvas Menu Issue
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
| if ( ! function_exists( 'bookworm_cart_link_fragment' ) ) { | |
| function bookworm_cart_link_fragment( $fragments ) { | |
| global $woocommerce; | |
| ob_start(); | |
| bookworm_cart_page_header(); | |
| $fragments['.page__header--cart'] = ob_get_clean(); | |
| ob_start(); | |
| bookworm_cart_link_count(); | |
| $fragments['span.cart-contents-count'] = ob_get_clean(); | |
| ob_start(); | |
| bookworm_wc_offcanvas_mini_cart_content(); | |
| $fragments['#offcanvasCart div.u-sidebar__body'] = ob_get_clean(); | |
| $fragments['span.cart-contents-total'] = bookworm_cart_link_total_text(); | |
| return $fragments; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment