Jump to content


Photo
- - - - -

Customize Link of Fixed NavBar Logo

navigation fixed nav logo link

Best Answer James B , 24 April 2013 - 02:45 AM

Hi Lex

 

The below will amend the link and image in the fixed navbar.

 
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>';
}
Go to the full post


  • Please log in to reply
4 replies to this topic

#1 lexevan

lexevan

    Newbie

  • Members
  • 3 posts
  • Country: Country Flag

Posted 23 April 2013 - 02:10 AM

Hi, 

 

I need help in figuring out how to change the link of the Fixed NavBar logo. It's set to go to the homepage, but I need it to go somewhere specific. 

 

thanks for any help you can provide.

 

 



#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 23 April 2013 - 03:38 AM

Hi there, check out this post which has a filter on which will help -

Please Login or Register to see this Hidden Content

 

You'll need to put the code into the functions.php of a child theme like the 'base theme' or the customize plugin for it to work.



#3 lexevan

lexevan

    Newbie

  • Members
  • 3 posts
  • Country: Country Flag

Posted 24 April 2013 - 01:57 AM

Hi James, 

 

This works for the standard navigation, but I'm trying to modify the logo & link on the fixed nav bar.

 

Hi there, check out this post which has a filter on which will help -

Please Login or Register to see this Hidden Content

 

You'll need to put the code into the functions.php of a child theme like the 'base theme' or the customize plugin for it to work.



#4 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 24 April 2013 - 02:45 AM   Best Answer

Hi Lex

 

The below will amend the link and image in the fixed navbar.

Please Login or Register to see this Hidden Content


  • batman likes this

#5 lexevan

lexevan

    Newbie

  • Members
  • 3 posts
  • Country: Country Flag

Posted 25 April 2013 - 12:49 AM

Amazing! thank you so much!

 

 

Hi Lex

 

The below will amend the link and image in the fixed navbar.

Please Login or Register to see this Hidden Content







Also tagged with one or more of these keywords: navigation, fixed nav, logo link