-
AuthorPosts
-
July 5, 2016 at 4:49 pm #657153
I have a few password protected pages on my site for a workgroup, and I’d like to have the header logo on these pages display differently than the rest of the pages since the workgroup is branded differently than the rest of our site. How would I go about doing this?
July 5, 2016 at 5:19 pm #657164maybe this could help you:
https://kriesi.at/support/topic/different-logo-in-one-of-the-pages/#post-613359July 5, 2016 at 5:34 pm #657175Thank you. Do I add this anywhere? I’m not a wordpress pro and I’m afraid I’ll mess something up.
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_page(9) )
{
$logo = “http://kriesi.at/wp-content/themes/kriesi/images/logo.png”;
}
return $logo;
}July 5, 2016 at 7:00 pm #657211July 5, 2016 at 7:23 pm #657218How so I specify which pages have this alternative logo? I have about 5 password-protected pages that need this logo.
July 5, 2016 at 8:12 pm #657226Hi!
You can add the in a sequence, at the code, based on their ID. I have added an example
add_filter(‘avf_logo’,’av_change_logo’); function av_change_logo($logo) { if(is_page(9) || is_page(8) || is_page(7) ) { $logo = “http://kriesi.at/wp-content/themes/kriesi/images/logo.png”; } return $logo; }
Please do let us know if that is helpful.
Cheers!
BasilisJuly 5, 2016 at 10:59 pm #657286But if you are not a pro in wordpress please try to get familiar with child-themes. This is a realy nice thing to have – because if you update your parent theme (enfold) those changings are not lost.
See here: http://kriesi.at/documentation/enfold/using-a-child-theme/
than you can input those changings in your child-theme functions.php.
(Via Dashboard/Appearance/Editor you can add those snippets to your child-theme functions.php)
On the link above there is a download of the child-theme files)The functions.php is one of those files which do not react as most of the other wordpress files. If there is a functions.php file in your child theme the instructions and setting on that are added to the parent functions.php and do not completely overwrite those.
So Changings are not gone after updating your parent theme.
July 6, 2016 at 1:09 pm #657420 -
AuthorPosts
- You must be logged in to reply to this topic.