Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #661402

    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

    #661404

    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

    #661427

    Like this?

    example code

    #661428

    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

    #661436

    Dreamweaver tells me there is an error.

    When i use the code i get a blank screen when visiting the site.

    error in php notification

    #661441

    It works! Beautiful.
    Thanks too much!

    #661544

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Changing the header logo link’ is closed to new replies.