Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #845947
    #845950

    Hey jillsross,

    I added following code to Functions.php file in Appearance > Editor

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub) {
    if(is_page(1114)) {
        $sub .= '<img class="alternate" src="https://kriesi.at/wp-content/themes/kriesi/images/logo.png"/>';
        }
        return $sub;
    }

    Please review your website

    Best regards,
    Yigit

    #845951

    You are amazing, thank you that worked!!!

    #845961

    Sorry, last question! I’m trying to add the same filter to customize another page but my code keeps breaking the site
    This is what I am assuming I need to do but it’s clearly wrong. I am guessing that just repeating the filter is not how this is accomplished?
    /*
    * first custom page
    */
    add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    if(is_page(1114)) {
    $logo = “http://mysiteFR_logo.jpg&#8221;;
    }
    return $logo;
    }
    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    if(is_page(1114)) {
    $sub .= ‘‘;
    }
    return $sub;
    }
    /*
    * second custom page
    */
    add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    if(is_page(1114)) {
    $logo = “http://mysite.com/secondpage_logo.jpg&#8221;;
    }
    return $logo;
    }
    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    if(is_page(1114)) {
    $sub .= ‘‘;
    }
    return $sub;
    }

    #845995

    Hi,

    If this is for another page then the page id (1114) needs to be different. Also, the function name should be different so it doesn’t overwrite the previous function with the same name.

    Best regards,
    Jordan Shannon

    #846031

    Thanks Jordan got it!

    #846088

    Hi,

    No problem at all. Were you able to get this figured out?

    Best regards,
    Jordan Shannon

    #846270

    Yes, thank you so much!

    #846277

    Hey!

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Change Transparent Logo on specific page’ is closed to new replies.