New Landing How can we help? Themeforest Theme Support Dante Tooltip without Link

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #70924
    Zachy
    Member
    Post count: 83

    Hey all!

    Does anyone know how to remove the link on a Tooltip?

    Thanks,
    Zach

    #71122
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    HI,
    Please elaborate your issue .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #73163
    Zachy
    Member
    Post count: 83
    This reply has been marked as private.
    #73338
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Open up shortcodes.php in the swift-framework folder and go to line 915:

    /* TOOLTIP SHORTCODE
    	================================================= */
    	
    	function sf_tooltip($atts, $content = null) {
    		extract(shortcode_atts(array(
    			"title" => '',
    			"link" => '#',
    			"direction" => 'top'
    		), $atts));
    				
    		$tooltip_output = '<a href="'.$link.'" rel="tooltip" data-original-title="'.$title.'" data-placement="'.$direction.'">'.do_shortcode($content).'</a>';
    
    		return $tooltip_output;
    	}
    	
    	add_shortcode('sf_tooltip', 'sf_tooltip');

    and remove the link ๐Ÿ™‚

    – Kyle

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register