Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #529200

    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

    #529931

    Hi Yigit,
    this is the page, and i’ll do also another 6-7 pages like this with other gallery

    http://www.mottarellatest.it/mottarellanew2/photo/

    #529934

    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

    #529945

    Thanks Yigit, I have to do this for any pages.

    #529967

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.