Home › Forums › Themes Support › Gecko › Disable the sliding Cart Sidebar
- This topic has 5 replies, 2 voices, and was last updated 2 years, 11 months ago by Harry.
-
AuthorPosts
-
-
February 22, 2021 at 11:00 pm #40532prsocialSupport Expired
Hi, how can we disable the sliding Cart Sidebar en just make the Cart Icon link to the Cart page? I use Header Layout 5. The first fix you gave me on Themeforest didnt work and you asked me to make a topic.
-
February 22, 2021 at 11:03 pm #40533prsocialSupport ExpiredThis reply has been marked as private.
-
February 22, 2021 at 11:18 pm #40536HarrySupport Expired
Hi Prsocial,
Please copy file layout-5.php in gecko > views > header to gecko-child > views > header and change code on line 64 from
echo jas_gecko_wc_shopping_cart();
to
global $woocommerce; echo '<a class="cb chp hidden-xs" href="' . esc_url( wc_get_cart_url()) . '" title="' . esc_html__( 'View your shopping cart', 'gecko' ) . '"><i class="pe-7s-shopbag"></i>'; echo '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>'; echo '</a>'; echo wp_kses_post( WC()->cart->get_cart_subtotal() );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 23, 2021 at 12:34 am #40541prsocialSupport Expired
-
February 23, 2021 at 8:46 am #40547HarrySupport Expired
Hi,
Please change code to
global $woocommerce; echo '<a class="cb chp" href="' . esc_url( wc_get_cart_url()) . '" title="' . esc_html__( 'View your shopping cart', 'gecko' ) . '"><i class="pe-7s-shopbag"></i>'; echo '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>'; echo '</a>'; echo wp_kses_post( WC()->cart->get_cart_subtotal() );
and add below code to gecko-child > style.css
.jas-action .count { width: 20px; height: 20px; font-size: 9px; line-height: 20px; left: 16px; top: 3px; }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
April 26, 2021 at 6:52 pm #41340HarrySupport Expired
Hi,
You can add below code to Theme Option > General Layout > Custom CSS to enable click on swatch
.swatch__list--item.disabled { pointer-events: initial !important; }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.