- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Design’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi!
How I can change the logo for one page on this wordpress site.
http://www.frenchgoat.hu/?cat=8
Basically for this subpage (man goat) I need a different logo.
It’s a wordpress site (TRENDOMANIA template) and no plugins seem to work for it.
I tried the snipets plugins but it is not work it. Why?
Code:
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if(is_page(8) )
{
$logo = “http://www.frenchgoat.hu/wp-content/uploads/2017/06/girl_goat.jpg”;
}
return $logo;
}
Thanks!!
Hi
You can do it simply through css. On header you have div named site-logo. Inside that div put two logos with different class names. Now 1 logo will be display none all the times except on your particular page. On body class wp automatically generated page id or cat id, in your case body.category-8 .(your normal logo classname) should be display none and other image should be display block.
this is simple one, you can do it through jquery also.
Thanks
The trick above my deb will work, alternatively put a conditional statement in your page.php
targeting the id of that subpage.
Is this a new site? Maybe consider changing the permalink structure to have pretty url’s; just saying.