HomePage › Forums › Themes Support › Umimo – Furniture Store WordPress Theme › De-activate some items, help
Tagged: header
- This topic has 4 replies, 3 voices, and was last updated 3 years, 3 months ago by Natlara1.
-
AuthorPosts
-
July 13, 2021 at 9:25 pm #12389osmaraleSupport Expired
Please help-me:
1.how to de-activate the “scroll to top” buttom?2. how to de-activate the “youre viewing” mini.cart/single product?
3. how to de-activate the iconlist(my account, etc)/mobile mode?
Ty
July 14, 2021 at 11:20 am #12402Hi you,
#1. I resolved this issue.
#2. Please use this code, I can’t add to your file functions.php:
add_action('after_theme_setup', 'umimo_remove_sticky_single_add_to_cart'); function umimo_remove_sticky_single_add_to_cart(){ remove_action('umimo_after_footer', 'umimo_sticky_single_add_to_cart', 999); }
#3. I removed this menu
July 14, 2021 at 10:14 pm #12416osmaraleSupport Expired2. file-name for edit the “youre viewing” text?
ty, gl!July 15, 2021 at 10:09 am #12421#2.
– If you want to remove this function, please copy and paste this code into file functions.php ( child-theme):add_action('after_theme_setup', 'umimo_remove_sticky_single_add_to_cart'); function umimo_remove_sticky_single_add_to_cart(){ remove_action('umimo_after_footer', 'umimo_sticky_single_add_to_cart', 999); }
– To edit text, you need to override function:
function umimo_sticky_single_add_to_cart() { global $product; if (!is_product()) { return; } $show = false; if ($product->is_purchasable() && $product->is_in_stock()) { $show = true; } else if ($product->is_type('external')) { $show = true; } if (!$show) { return; } $params = apply_filters( 'umimo_sticky_add_to_cart_params', array( 'trigger_class' => 'entry-summary', ) ); wp_localize_script('umimo-sticky-add-to-cart', 'umimo_sticky_add_to_cart_params', $params); ?> <section class="umimo-sticky-add-to-cart"> <div class="col-full"> <div class="umimo-sticky-add-to-cart__content"> <?php echo woocommerce_get_product_thumbnail(); ?> <div class="umimo-sticky-add-to-cart__content-product-info"> <span class="umimo-sticky-add-to-cart__content-title"><?php esc_attr_e('You\'re viewing:', 'umimo'); ?> <strong><?php the_title(); ?></strong></span> <span class="umimo-sticky-add-to-cart__content-price"><?php echo sprintf('%s', $product->get_price_html()); ?></span> <?php echo wc_get_rating_html($product->get_average_rating()); ?> </div> <a href="<?php echo esc_url($product->add_to_cart_url()); ?>" class="umimo-sticky-add-to-cart__content-button button alt"> <?php echo esc_attr($product->add_to_cart_text()); ?> </a> </div> </div> </section><!-- .umimo-sticky-add-to-cart --> <?php }
Copy and paste into file functions.php ( child-theme), then edit “You\’re viewing:” = “Your-text”
July 29, 2021 at 7:55 am #13039 -
AuthorPosts
You must be logged in to reply to this topic.