Home Forums WoodMart support forum Tooltip on wishlist icon

Tooltip on wishlist icon

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #94296

    Aurelien
    Participant

    Hi,

    A tooltip appears on the wishlist icon (header).
    How can I remove the title attribute (“My Wishlist”)?

    Regards.

    #94315

    Artem Temos
    Keymaster

    Hi,

    Create a file in the child theme woodmart-child/header-elements/wishlist.php with the following code

    <?php
    	if ( ! woodmart_woocommerce_installed() || ! class_exists( 'YITH_WCWL' ) ) return;
    
    	$extra_class = '';
    	$icon_type = $params['icon_type'];
    
    	$extra_class .= ' whb-wishlist-' . $params['design'];
    
    	if ( $params['hide_product_count'] ) {
    		$extra_class .= ' without-product-count';
    	}
    
    	if ( $icon_type == 'custom' ) {
    		$extra_class .= ' woodmart-wishlist-custom-icon';
    	}
    ?>
    
    <div class="woodmart-wishlist-info-widget<?php echo esc_attr( $extra_class ); ?>">
    	<a href="<?php echo esc_url(YITH_WCWL()->get_wishlist_url()); ?>">
    		<span class="wishlist-info-wrap">
    			<span class="wishlist-icon">
    				<?php 
    					if ( $icon_type == 'custom' ) {
    						echo whb_get_custom_icon( $params['custom_icon'] );
    					}
    				?>
    
    				<?php if ( ! $params['hide_product_count'] ): ?>
    					<span class="wishlist-count">
    						<?php echo YITH_WCWL()->count_products(); ?>
    					</span>
    				<?php endif; ?>
    			</span>
    			<span class="wishlist-label">
    				<?php esc_html_e( 'Wishlist', 'woodmart' ) ?>
    			</span>
    		</span>
    	</a>
    </div>

    Regards

    #94338

    Aurelien
    Participant

    Perfect, it works!

    Thank you very much, have a nice day!

    #94349

    Artem Temos
    Keymaster

    Great, you are welcome.

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

The topic ‘Tooltip on wishlist icon’ is closed to new replies.