This topic has 10 replies, 4 voices, and was last updated 7 years, 11 months ago ago by Eva Kemp
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!
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.
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.
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.
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!
Hello,
Try to add function code from woo.php to child functions.php file.
Let us know the results.
Best regards,
Jack Richardson.
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.
Hello,
I’ve edited header.php file in the child theme and removed the link.
Please check it.
Regards,
Eva Kemp.
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.
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.
You must be logged in to reply to this topic.Log in/Sign up