Home › Forums › Support › Change logo in some particular pages › Reply To: Change logo in some particular pages
September 19, 2016 at 9:29 am
#227741
Tom
Lead Developer
Lead Developer
Hi there,
Our Page Header add-on has a tab which allows you to change the logo on specific pages.
You can also use a PHP function with WordPress conditionals to change the logo on specific pages dynamically: https://codex.wordpress.org/Conditional_Tags
Your function would look something like this:
add_filter( 'generate_logo', 'tu_change_logo' );
function tu_change_logo( $logo )
{
if ( is_page( 10 ) ) :
return 'URL TO CUSTOM LOGO FOR PAGE 10';
endif;
// Return the default logo otherwise
return $logo;
}