This topic is: resolved
- This topic has 19 replies, 3 voices, and was last updated 8 years, 12 months ago by .
You must be logged in and have valid license to reply to this topic.
Homepage › Forum › Product Support › Sofani › Wishlist icon cache problem
This is for wishlist icon, I need that for "add to wishlist" button (.yith-wcwl-add-to-wishlist).
I am not going to use wishlist icon at all instead I added a (wishlist)link on user panel for logged-in users.
I added this code;
?><style><?php
if(! is_user_logged_in() ) : ?>
.yith-wcwl-add-to-wishlist{
display:none !important;
}
<?php endif; ?>
</style>
right before <?php wp_head(); ?> in header.php
It works how I wanted to but would it be a problem for updates? It it would where should I put this code?
Hi Canyasa.
Don't use this code for show/hide the icon. You can add check user login at this file
/themes/yolo-sofani/woocommerce/loop/whishlist.php
Or replace this file by my attach file.
Regards.
Jackie.
Ok, I removed the same code from header.php and put it in .../loop/wishlist.php
It looks working without a problem, thank you!
Thank you for feedback us.
If have any question, please don't hesitate contact us again.
Regards.
Jackie.
You must be logged in and have valid license to reply to this topic.
