Hi I managed to change logo for page
http://www.ultimatestorage.com.au/flooring-range
using
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if( is_page(1826) ) {
$logo = “http://www.ultimatestorage.com.au/wp-content/uploads/2017/09/ultimate_logo.jpg”;
}
return $logo;
}
However, I found that this function does not work for folio page. I am trying to use the Ultimate Flooring logo for all folio listed on ultimate flooring page.
Is there any way I can acheive this?
I tried is_post instead of is_page but it did not work.
Hey,
Please use following code in functions.php file in Appearance > Editor
add_filter('avf_logo','av_change_logo_single');
function av_change_logo_single($logo)
{
if(is_singular( 'portfolio' ))
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
Best regards,
Yigit
Hi Thanks for your help.
I have tried your code but our website went blank after that.
What I am trying to do is just to change logo for flooring page and the few folios.
Would it work?
Hi,
Please, may you provide to us your website link and the WP and FTP credentials?
Best regards,
John Torvik
Hi it is
http://www.ultimatestorage.com.au
and the page I am trying to change logo is
http://www.ultimatestorage.com.au/flooring-range (I already changed logo for this page only)
Also, all the folio linked on this page, I would like to change the logo to Ultimate flooring.
Hi,
I added the code to bottom of Functions.php file via FTP and it worked fine. Please review your website :)
Best regards,
Yigit
Cool. Thanks for your help!
:-D