Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Changing the Header Image Link

Question

Posted · Report post

Hi,

I am trying to change the blog header image to link back to the site's homepage. What's the best way to accomplish that? Specifically, want the www.elderbranch.com/blog header image to point back to www.elderbranch.com.

Thanks,

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

Hi,

Try this instead.

 

add_filter( 'navbar_brand', 'my_logo_url' );
function my_logo_url( $logo ) {
return '<a class="plbrand" href="Add Link Here" title=""><img class="mainlogo-img" src="Add Path To Image Here" alt="" /></a>';

}

Share this post


Link to post
Share on other sites

Posted · Report post

Great! This worked. Thanks a lot

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

You can try adding this to either the PageLines Customisation plugins or Child themes functions.php file.



add_filter( 'pagelines_site_logo', 'my_logo_url' );
function my_logo_url( $logo ) {
return '<a class="plbrand mainlogo-link" href="Add Link Here" title=""><img class="mainlogo-img" src="Add Path To Image Here" alt="" /></a>';

}

 


Please bear in my that you will need add both your URL and path to your logo image. There is most likely a better filter but my PHP skills are rather poor.

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Danny,

Thanks a lot. This worked, but then I decided I'd actually prefer to use the fixed navbar space for the logo, and want to update the URL that links to the logo there instead. Any ideas on how to change that one?

Thanks

Share this post


Link to post
Share on other sites