Your account expired support, please renew to get your support.

HomePage Forums Themes Support Umimo – Furniture Store WordPress Theme De-activate some items, help

Topic Resolution: Resolved

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12389
    osmarale
    Support 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

    #12402

    Hi 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

    #12416
    osmarale
    Support Expired

    2. file-name for edit the “youre viewing” text?
    ty, gl!

    #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”

    #13039
    Natlara1
    Support Expired

    hi

    • This reply was modified 3 years, 3 months ago by Natlara1.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.