-
AuthorPosts
-
March 24, 2016 at 11:09 am #602928
Hi,
I’m using the code below to give pages a different logo, but it doesn’t seem to work for portfolio-items. Any suggestions?
if( is_page(‘Seiran’) )
{
$url = “/wp-content/uploads/2015/12/logo_maia_ligfietsen.png”;
}site: maialigfiets.nl
March 24, 2016 at 12:42 pm #602962Hi Roderick!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_singular( 'portfolio' )) { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } return $logo; }Best regards,
YigitMarch 24, 2016 at 1:23 pm #602992Hi thanks! is it also possible to do a logo for each seperate portfolio item or a category?
March 24, 2016 at 1:25 pm #602994Hi!
Yes that would be possible as well by altering the code. Could you please post the link to your pages where you would like to use different logo?
Best regards,
YigitMarch 24, 2016 at 1:32 pm #603002http://maialigfiets.nl/portfolio-item/hase-pino/ this should have the purple logo which worked great with your code, but we will also be adding other portfolio items later on that will have another logo
March 24, 2016 at 1:35 pm #603004Hey!
Please add following code to Functions.php file as well
add_filter('avf_logo','av_change_logo_single'); function av_change_logo_single($logo) { if(is_singular( 'portfolio' ) && is_single( '4313' ) ) { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } return $logo; }Cheers!
YigitJanuary 17, 2017 at 6:33 am #734489FYI
This doesn’t work if you have “Header Transparency Logo” set: it seems to override this.
Turn it off and this code works like a charm.
January 17, 2017 at 7:59 am #734533Hi!
Cool, happy it worked for you.
Please feel free to let us know if you need anything else from us.
Please also remember to rate Enfold, at themeforest.
It really helps us out.Thank you very much
Regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.
