Home › Forums › WoodMart support forum › Adding ti wishlist shortcode on grid product hover
Adding ti wishlist shortcode on grid product hover
- This topic has 5 replies, 2 voices, and was last updated 3 years, 10 months ago by Elise Noromit.
-
AuthorPosts
-
November 13, 2020 at 3:25 am #241189
AndreParticipantHello,
We are using ti wishlist instead of the integrated wishlist (mainly because it offers ability to have multiple wishlists and a few other features). Overall everything works great but when it tries to place the wishlist button in the product grid it places it next to add to cart but ‘stacks’ them instead of keeps in a row like native wishlist.
ti wishlist gives us a shortcode to add the code in – can you possibly tell us where to place the shortcode so it is in line with add to cart and quick view?
Attachments:
You must be logged in to view attached files.November 13, 2020 at 10:00 am #241257
Elise NoromitMemberHello,
Please find this file:
woodmart/woocommerce/content-product-icons.php
Add your shortcode as per the sample:
<?php echo do_shortcode( 'your_shortcode' ); ?>
please have a look at the screenshot: http://prntscr.com/vihikc
Best Regards
February 7, 2021 at 2:47 am #264501
AndreParticipantThank you for this code – is it possible to style the shortcode to look similar to the add to cart button or quickview button? It is a custom wishlist and the shortcode we are inserting works but I think we are missing some custom style?
Attachments:
You must be logged in to view attached files.February 8, 2021 at 9:16 am #264695
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.woodmart-buttons .tinvwl_add_to_wishlist_button { position: static !important; height: auto !important; width: auto !important; border-bottom: none !important;; } .woodmart-buttons .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before { position: static !important; margin: 0 !important; font-size: 26px; line-height: 45px; } .woodmart-buttons .tinv-wraper { position: relative; display: inline-flex; align-items: center; flex-direction: column; justify-content: center; width: 50px; height: 45px; font-weight: 400; font-size: 0; line-height: 0; } @media (max-width:1024px) { .woodmart-buttons .tinv-wishlist { display: none !important; } }
Best Regards
February 8, 2021 at 3:20 pm #264799
AndreParticipantPerfect – thank you for your help!
February 9, 2021 at 12:37 am #264882
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register