Cart on tablet has glich - by kordicpetar

This topic has 10 replies, 4 voices, and was last updated 7 years, 4 months ago ago by Eva Kemp

  • Avatar: kordicpetar
    kordicpetar
    Participant
    December 1, 2016 at 08:43

    Hi there,

    I saw one glich that is happening on tablet with cart in top bar. For example, on my test site maminaprodavnica.cia.rs you can see in tablet and mobile view below 768px width that dropdown box from cart mix with title of the page. I am sending you screenshot of my page on 760px width. http://pho.to/AX6SN

    How can I fix this?

    Thanks!

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 1, 2016 at 11:03

    Hello,

    Try to add this code in Custom CSS:

    @media only screen and (max-width: 767px){
       .header .shopping-cart-widget {
          z-index:3;
       }
    }

    Regards,
    Rose Tyler.

    Avatar: kordicpetar
    kordicpetar
    Participant
    December 1, 2016 at 11:08

    Hi Rose,

    It is still below revolution slider now.

    And is it possible to cancel link when somebody click on cart. It immediately send me to cart without ability to check to dropdown first.

    Avatar: Eva
    Eva Kemp
    Support staff
    December 1, 2016 at 20:15

    Hello,

    I don’t see the issue http://storage2.static.itmages.com/i/16/1201/h_1480619460_2077813_3057de6840.jpeg .

    Link can be removed in the file wp-content/themes/legenda/framework/woo.php, remove the code in line 913 <?php echo $woocommerce->cart->get_cart_url(); ?>.

    Regards,
    Eva Kemp.

    Avatar: kordicpetar
    kordicpetar
    Participant
    December 2, 2016 at 08:13

    Hi Eva,

    I remove that code but it still have the link. you can check on http://www.maminaprodavnica.cia.rs. I removed the link in the child file: /wp-content/themes/legenda-child/framework/woo.php

    Thanks!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 2, 2016 at 09:23

    Hello,

    Try to add function code from woo.php to child functions.php file.
    Let us know the results.

    Best regards,
    Jack Richardson.

    Avatar: kordicpetar
    kordicpetar
    Participant
    December 2, 2016 at 11:52

    Hi there,

    I paste this code in function.php in child

    // **********************************************************************//
    // ! Top Cart Widget
    // **********************************************************************//

    if(!function_exists(‘etheme_top_cart’)) {
    function etheme_top_cart() {
    global $woocommerce;
    ?>

    <div class=”shopping-cart-widget a-right” <?php if(etheme_get_option(‘favicon_badge’)) echo ‘data-fav-badge=”enable”‘ ?>>
    <div class=”cart-summ” data-items-count=”<?php echo $woocommerce->cart->cart_contents_count; ?>”>

    cart->cart_contents_count; ?>”>
    <div class=”cart-bag”>
    <?php _e(‘Cart’, ETHEME_DOMAIN); ?>

    <?php etheme_cart_number(); ?>

    <?php etheme_cart_totals(); ?>
    </div>

    </div>
    <div class=”widget_shopping_cart_content”>
    <?php
    woocommerce_mini_cart();
    ?>
    </div>
    </div>

    <?php
    }
    }

    but nothings happened. Link is still there.

    Avatar: Eva
    Eva Kemp
    Support staff
    December 2, 2016 at 17:27

    Hello,

    I’ve edited header.php file in the child theme and removed the link.
    Please check it.

    Regards,
    Eva Kemp.

    Avatar: kordicpetar
    kordicpetar
    Participant
    December 6, 2016 at 11:27

    Dear Eva,

    Can you please tell me what have you edited in header.php cause I need to reverse that? This caused that I now can not go from desktop to cart. I just want to reverse that what you change, but can not find modification.

    Avatar: Eva
    Eva Kemp
    Support staff
    December 6, 2016 at 20:01

    Hello,

    I’ve edited the line 195 and removed the code <?php echo esc_url( $woocommerce->cart->get_cart_url() ); ?> in this string <a href="" class="shopping-cart-link" >, it should be <a href="<?php echo esc_url( $woocommerce->cart->get_cart_url() ); ?>" class="shopping-cart-link" >.

    Regards,
    Eva Kemp.

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.