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

    Hi Kriesi-Team,

    we were wondering, if it is possible to deactivate the link of the header logo, actually it links to the static page that we defined as the homepage, we simply want to turn it off ;)

    Thanks in advance
    MeisDesign

    #285158

    i think you have to edit in function-set-avia-frontend.php (framework folder/php/) some lines!
    here you can see the avia_logo funktion is defined:

    if(!function_exists('avia_logo'))
    {
    	/**
    	 * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    	 * otherwise display the logo file linked in the css file for the .bg-logo class
    	 * @return string the logo + url
    	 */
    	function avia_logo($use_image = "", $sub = "", $headline_type = "h1", $dimension = "")
    	{
    		$use_image 		= apply_filters('avf_logo', $use_image);
    		$headline_type 	= apply_filters('avf_logo_headline', $headline_type);
    		$sub 			= apply_filters('avf_logo_subtext',  $sub);
    		$alt 			= apply_filters('avf_logo_alt', get_bloginfo('name'));
    		$link 			= apply_filters('avf_logo_link', home_url('/'));
    		
    		if($sub) $sub = "<span class='subtext'>$sub</span>";
    		if($dimension === true) $dimension = "height='100' width='300'"; //basically just for better page speed ranking :P
    
    		if($logo = avia_get_option('logo'))
    		{
    			 $logo = apply_filters('avf_logo', $logo);
    			 $logo = "<img {$dimension} src='{$logo}' alt='{$alt}' />";
    			 $logo = "<$headline_type class='logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>";
    		}
    		else
    		{
    			$logo = get_bloginfo('name');
    			if($use_image) $logo = "<img {$dimension} src='{$use_image}' alt='{$alt}' title='{$logo}'/>";
    			$logo = "<$headline_type class='logo bg-logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>";
    		}
    		
    		$logo = apply_filters('avf_logo_final_output', $logo, $use_image, $headline_type, $sub, $alt, $link);
    
    		return $logo;
    	}
    }

    but please don’t ask me how to do it best

    #285160

    you might test this instead – but please do only test it on an experimental installation!
    It starts on line 417:
    You can see the difference above:

    if(!function_exists('avia_logo'))
    {
    	/**
    	 * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    	 * otherwise display the logo file linked in the css file for the .bg-logo class
    	 * @return string the logo + url
    	 */
    	function avia_logo($use_image = "", $sub = "", $headline_type = "h1", $dimension = "")
    	{
    		$use_image 		= apply_filters('avf_logo', $use_image);
    		$headline_type 	= apply_filters('avf_logo_headline', $headline_type);
    		$sub 			= apply_filters('avf_logo_subtext',  $sub);
    		$alt 			= apply_filters('avf_logo_alt', get_bloginfo('name'));
    		$link 			= apply_filters('avf_logo_link', home_url('/'));
    		
    		if($sub) $sub = "<span class='subtext'>$sub</span>";
    		if($dimension === true) $dimension = "height='100' width='300'"; //basically just for better page speed ranking :P
    
    		if($logo = avia_get_option('logo'))
    		{
    			 $logo = apply_filters('avf_logo', $logo);
    			 $logo = "<img {$dimension} src='{$logo}' alt='{$alt}' />";
    			 $logo = "<$headline_type class='logo'>".$logo."$sub</$headline_type>";
    		}
    		else
    		{
    			$logo = get_bloginfo('name');
    			if($use_image) $logo = "<img {$dimension} src='{$use_image}' alt='{$alt}' title='{$logo}'/>";
    			$logo = "<$headline_type class='logo bg-logo'>".$logo."$sub</$headline_type>";
    		}
    		
    		$logo = apply_filters('avf_logo_final_output', $logo, $use_image, $headline_type, $sub, $alt, $link);
    
    		return $logo;
    	}
    }
    #285176

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .logo { pointer-events: none !important; }

    Best regards,
    Yigit

    #285234

    ok – this is quick and dirty – and with no risk

    #285235

    Hey!

    And easy to un-do when needed. Thanks for your help! :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.