 
	
		Tagged: logo
- 
		AuthorPosts
- 
		
			
				
November 14, 2014 at 11:12 pm #351555Hi, I’m trying to find a solution for making the logo redirect to a URL that is not the ‘home’ URL. I found a solution posted in 2013 that doesn’t work now. Anyone have suggestions? 
 Thanks!November 14, 2014 at 11:35 pm #351569Hey! Refer to this article: 
 http://kriesi.at/documentation/enfold/change-the-logo-url-on-some-pages/Best regards, 
 JosueNovember 15, 2014 at 7:15 pm #351862Hi Josue, 
 Thanks for your reply! But I actually want the logo to be the same image, I just want it so that when you click on it, it goes to a custom URL, instead of the Home URL.
 I notice that in the framework / php / function-set-avia-frontend.php file, there is the following code: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 :Pif($logo = avia_get_option(‘logo’)) 
 {
 $logo = apply_filters(‘avf_logo’, $logo);
 if(is_numeric($logo)){ $logo = wp_get_attachment_image_src($logo, ‘full’); $logo = $logo[0]; }
 $logo = ““; 
 $logo = “<$headline_type class=’logo’>“.$logo.”$sub</$headline_type>”;
 }
 else
 {
 $logo = get_bloginfo(‘name’);
 if($use_image) $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; 
 }
 }Is there something here that I can change to make it go from home_url to a custom URL? 
 Thanks!November 15, 2014 at 8:01 pm #351883Hey! Try adding this at the very end of your theme / child theme functions.php file: add_filter('avf_logo_link', 'avf_redirect_logo_link'); function avf_redirect_logo_link($link) { $link = 'http://www.google.com'; return $link; }Cheers! 
 JosueNovember 15, 2014 at 9:38 pm #351905That worked! Fantastic, thank you Josue! 
- 
		AuthorPosts
- The topic ‘Custom URL for Logo’ is closed to new replies.
