-
AuthorPosts
-
April 29, 2016 at 8:14 pm #624750
Hi
I want to change the header background color (from #080278 to #630b52) on internal pages and I would like to switch the logo to something else too.
Here’s what I found in support:
Header background:
.page-id-59 .header_bg {
background: red !important;
}I wonder what is the page-id. Where can I find it?
different logo
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if(is_page(201) )
{
$logo = “http://www.thaifoodculturefestival.maithaientertainment.com/wp-content/uploads/2016/04/df-l-maithai-l-logo-l-violet-l-rgb_72dpi-e1461952821711.png”;
}
return $logo;
}But that does not work for me and I deleted the text again.
It would be great if someone could help me there.
Thanks and regards
Kurt————————————————————————————————————————————————————-
Hallo
Ich möchte farblich Akzente setzen und auf einer Seite den Headerhintergrund (#630b52) ändern und ein anderes Logo verwenden.
Folgendes habe ich im Support gefunden:
Headerhintergrund:
.page-id-59 .header_bg {
background: red !important;
}Ich frage mich, was die page-id ist. Wo finde ich die oder hängt das allenfalls mit der Reihenfolge zusammen?
Anderes Logo anzeigen:
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if(is_page(201) )
{
$logo = “http://www.thaifoodculturefestival.maithaientertainment.com/wp-content/uploads/2016/04/df-l-maithai-l-logo-l-violet-l-rgb_72dpi-e1461952821711.png”;
}
return $logo;
}Nur funktioniert das bei mir irgendwie nicht und ich habe die Einträge wieder gelöscht.
Es wäre super, wenn mir da jemand helfen könnte.
Danke und Gruss
Kurt- This topic was modified 8 years, 6 months ago by Cuewin.
May 2, 2016 at 9:08 pm #626024No one out there who could help me?
May 3, 2016 at 4:00 am #626134Hi,
Thank you for using Enfold and sorry for the delay.
You can find the id in the body tag of the page. Use the browsers’ element or html inspector. https://developers.google.com/web/tools/chrome-devtools/iterate/inspect-styles/?hl=en
The page id of the provided page is “page-id-1736” so something like this should work:
.page-id-1736 .header_bg { background: red !important; }
And use this for the logo:
// logo image add_filter('avf_logo','avf_new_logo_url'); function avf_new_logo_url($use_image){ if(is_page(1736)) { $use_image = "http://www.thaifoodculturefestival.maithaientertainment.com/wp-content/uploads/2016/04/df-l-maithai-l-logo-l-violet-l-rgb_72dpi-e1461952821711.png"; } return $use_image; }
Best regards,
IsmaelMay 9, 2016 at 10:22 pm #629496Hi Ismael
Thank you for your support. That works great.
Best regards
Kurt -
AuthorPosts
- The topic ‘Different header background and logo / Verschiedene Headerhintergründe und Logos’ is closed to new replies.