Hello,
in my new site i’d like to distinguish two section with two different general styling. I set the main styling with white background color, but I’d like to add a section with black background color. In the page i can use the color section, but i’d like to change also the header with the black background and the negative logo.
Can I do this? How?
Thanks Sere
Hey Serena!
Using page ID’s you can make these changes. Can you please post the link to your page where you would like to display black header?
Cheers!
Yigit
Hi Yigit,
this is the page, and i’ll do also another 6-7 pages like this with other gallery
Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.page-id-441 #header_main {
background: black;
}
and then 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(441) )
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
You can right click on Chrome or Firefox to inspect elements to find page ID’s http://i.imgur.com/HyPTCRg.jpg
Best regards,
Yigit
Thanks Yigit, I have to do this for any pages.
Hey!
Yes, the code you add to functions.php file should be as following for more than one page ID (441 and 442)
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(is_page(array(441, 442)) )
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
Best regards,
Yigit