Tagged: logo link
My enfold site is parked at a subdomain (http://storiesofinnovation.njit.edu). The client has requested that rather than the header logo linking to the homepage of the subdomain site, it should target a new window and link to the client’s root domain (http://www.njit.edu).
Is it posible to apply edits to child theme documents to enable this feature?
Thanks!
Thomas
Hi fndry!
Please add following code to Functions.php file of your child theme in Appearance > Editor
add_filter('avf_logo_link','av_change_logo_link');
function av_change_logo_link($link)
{
$link = "http://kriesi.at";
return $link;
}
Cheers!
Yigit
Like this?
Hi!
No, as following
add_filter('avf_logo_link','av_change_logo_link');
function av_change_logo_link($link)
{
$link = "http://www.njit.edu";
return $link;
}
function av_logo_link_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('.logo a').attr('target','_blank')
});
</script>
<?php
}
add_action('wp_footer', 'av_logo_link_target');
Best regards,
Yigit
Dreamweaver tells me there is an error.
When i use the code i get a blank screen when visiting the site.
It works! Beautiful.
Thanks too much!
Hey!
You are welcome, glad we could help! Let us know if you have any other questions or issues :)
For future readers, please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png :)
Best regards,
Yigit