Jump to content
Sign in to follow this  
ngudan

How do I link my BrandNav image to another page on my site (other than home)?

Recommended Posts

ngudan

Hey guys, Just want to find out how I can link my "BrandNav" header to another page on my site. The default setup automatically takes users to the home page. Please advise - thanks!

Share this post


Link to post
Share on other sites
catrina

What part of the brandnav header to do you want on the other page? Or is it the entire section?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
ngudan

Hi Catrina, Ideally I would like the entire section of it on this site in particular. If you could also let me know how to have certain sections of the brand nav link separately that would be great too! Thank you Catrina.

Share this post


Link to post
Share on other sites
catrina

Ah, I misunderstood your question the first time. Do you mean that you want the logo in the header to link to somewhere other than where it looks to by default?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
ngudan

Yep you're spot on Catrina! The default is set to the home page. I would like for example to have a "Contact Us" section on the top right - which when clicked, will lead to the contact us page. Thanks again.

Share this post


Link to post
Share on other sites
catrina

So you'd like to add a "Contact Us" section added to the top right and leave the default image that is there linked to the homepage by default or would you like that link changed to the contact link, too? Can you post a link to your site?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
ngudan

Hi Catrina, Here is the site: http://bigprofitrenos.com/ I would like to have the "Contact Us Today" section link to the contact us page and keep the Logo on the top left linked to the homepage. Your help is greatly appreciated!

Share this post


Link to post
Share on other sites
ngudan

Hey there Kastelic, thank you for posting up the link - although i can't access it for some reason (the page says I have permission problems). Any chance you could repost the link? Thanks again.

Share this post


Link to post
Share on other sites
kastelic

Here are three functions. Depending on what you have, you will want to paste one of them into platformbase/functions.php (by the way, this makes it redirect to http://google.com, change that part for your site): If you aren't using a logo image, just the site title

	//change the site title link url
	add_filter ( 'pagelines_site_title', 'myfilter');
	function myfilter($site_title){
			$site_title = sprintf( '
%s
%s
', 'http://google.com', __('Home','pagelines'), get_bloginfo('name'), get_bloginfo('description')); return $site_title; } [/code] If you are using a logo image.
[code] //change the logo link url add_filter ( 'pagelines_site_logo', 'afilter'); function afilter($site_logo){ $site_logo = sprintf( '%s', 'http://google.com', get_bloginfo('name'), esc_url(pagelines_option('pagelines_custom_logo')), get_bloginfo('name')); return $site_logo; }
If you are using a logo image and have a static homepage.
	//change the logo link url for static homepage
	//add_filter ( 'pagelines_site_logo', 'logofilter');
	function logofilter($site_logo){
			$newsite_logo = sprintf( '', 'http://google.com', get_bloginfo('name'), esc_url(pagelines_option('pagelines_custom_logo')), get_bloginfo('name'));
	
			return ( is_front_page() ) ? $newsite_logo : $site_logo;
	}
	[/code]

Share this post


Link to post
Share on other sites
thebusysingleparent
@kastelic of all the support posts I have sorted through this was the only suggestion that actually worked! Thank You!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×