Home Forums WoodMart support forum Adding ti wishlist shortcode on grid product hover

Adding ti wishlist shortcode on grid product hover

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #241189

    Andre
    Participant

    Hello,

    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.
    #241257

    Hello,

    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

    #264501

    Andre
    Participant

    Thank 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.
    #264695

    Hello,

    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

    #264799

    Andre
    Participant

    Perfect – thank you for your help!

    #264882

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)