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

    #657164
    #657175

    Thank 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;
    }

    #657211

    Hey!

    You can add the code to the bottom of functions.php file :)

    Best regards,
    Yigit

    #657218

    How so I specify which pages have this alternative logo? I have about 5 password-protected pages that need this logo.

    #657226

    Hi!

    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!
    Basilis

    #657286

    But 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.

    #657420

    Hi,

    Agreed! @Guenni007 thanks for your input!

    Best regards,
    Yigit

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