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


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1 lexevan

lexevan

    Newbie

  • Members
  • 3 posts

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

  • DMS Subscriber†
  • 5126 posts

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

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

  • DMS Subscriber†
  • 5126 posts

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



#5 lexevan

lexevan

    Newbie

  • Members
  • 3 posts

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