Jump to content
Sign in to follow this  
nhampton

How to use the "pagelines_logo_url" filter to change the Logo URL?

Recommended Posts

nhampton

Hello, I see on the API page (http://api.pagelines.com/hooks) that there is a hook for changing the URL that the logo links to. How do I use this in functions.php (using Base child theme)? Here's my a guess at a starting place:

<?php add_filter( 'pagelines_logo_url', 'my_url' );
	function my_url(){
	 //NEW URL GOES HERE?
	} ?>

Can someone with more programming skills than me point me in the right direction? What's the missing piece from this code?

Share this post


Link to post
Share on other sites
Simon
Only use php open and close tags if you need to ;) [code] add_filter( 'pagelines_logo_url', 'my_logo_url' ); function my_logo_url( $logo ) { return 'http://mylogo.png'; } [/code]

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  

×