-
AuthorPosts
-
November 3, 2015 at 11:35 am #529102
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
November 3, 2015 at 1:25 pm #529200Hey 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!
YigitNovember 4, 2015 at 12:11 pm #529931Hi Yigit,
this is the page, and i’ll do also another 6-7 pages like this with other galleryNovember 4, 2015 at 12:15 pm #529934Hi!
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,
YigitNovember 4, 2015 at 12:39 pm #529945Thanks Yigit, I have to do this for any pages.
November 4, 2015 at 1:14 pm #529967Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.
