Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #585050

    Hi chaps, as titles reads!
    Is there a way to achieve this please?
    Thanks

    #585052

    Hey evtilsley!

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

    9 here is the page ID. Please change it to match your page’s ID and then change the link to your logo

    Cheers!
    Yigit

    #585082

    Thanks – anywhere specific in functions.php?
    Tried it a couple of places & no change to the targeted page.

    The code I’ve added:
    /* 18.02.2016 – show outlet logo on Outlet page */
    add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    if(is_page(2207) )
    {
    $logo = “http://ivorytowerbridal.co.uk/wp-content/uploads/2016/02/IT-Outlet-logo-v0.3.png”;
    }
    return $logo;
    }

    The page:
    http://ivorytowerbridal.co.uk/?page_id=2207

    Thanks !!

    #585085

    Hey!

    Please use the code as following

    /* 18.02.2016 – show outlet logo on Outlet page */
    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
    if(is_product_category())
    {
    $logo = "http://ivorytowerbridal.co.uk/wp-content/uploads/2016/02/IT-Outlet-logo-v0.3.png";
    }
    return $logo;
    }

    Cheers!
    Yigit

    #585091

    Shoot I’m just now getting:

    Server error

    500

    This couldnt be me, could it !?!?!?

    #585093

    Hey!

    Well, code does look fine. If you do not mind posting FTP logins here privately, we can fix the error for you. If you would like to remove it, you can go to wp-content/themes/enfold/functions.php file and remove the code

    Cheers!
    Yigit

    #585107

    Is the page still loading for you? I get an error & unsure whether it’s the hosting company, or something I’ve just done!

    #585108

    Hey!

    No it is not. I believe it is because of the code. If you do not mind posting FTP, we can look into it.

    Cheers!
    Yigit

    #585110

    [18-Feb-2016 00:50:04 UTC] PHP Parse error: syntax error, unexpected ‘:’ in /home2/tradesm5/public_html/ivorytowerbridalco/wp-content/themes/enfold/functions.php on line 67

    copied from http://ivorytowerbridal.co.uk/error_log

    #585111

    Hi!

    Please make sure that double quotes are opened and closed properly as i posted here – https://kriesi.at/support/topic/one-page-needs-different-logo-in-the-header/#post-585085

    Cheers!
    Yigit

    #585113

    SErver contact has replaced theme file. Site’s up again but footer wrong – off topic but – I’m out of practice with WP – where do I fix this ??!

    #585114

    IGNORE I had to re-update the theme

    #585115

    Can I set you up as a USER to look at correctly adding those lines into functions.php? I dont want to break it again

    #585335

    Hey!

    Sure, please post WordPress admin logins here privately. To be on the safe side, please post FTP credentials as well.

    Best regards,
    Yigit

    #585354

    Private content follows..

    • This reply was modified 8 years, 9 months ago by evtilsley.
    #585968

    Hi – FTP details are:

    #587094

    Hey!

    You have Enfold installed twice on your installation. Please remove the one that you are not using.

    Regards,
    Yigit

    #587129

    done. No idea why/how

    #587149

    Hi!

    I changed the code to following one

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
    if(is_woocommerce() && is_archive())
    {
    $logo = "http://ivorytowerbridal.co.uk/wp-content/uploads/2016/02/IT-Outlet-logo-v0.3.png";
    }
    return $logo;
    }
    

    Please review your website now

    Cheers!
    Yigit

    #587151

    FANTASTIC. I didnt want to break something again.
    Is there a line of quick CSS to increase the dimensions of the new logo on that page?
    http://ivorytowerbridal.co.uk/?page_id=2207

    THANKS

    #587156

    Hi!

    Please add following code to Quick CSS

    .archive.woocommerce .logo, .archive.woocommerce .logo a, .archive.woocommerce .logo img {
        max-width: 100%!important;
    }

    Regards,
    Yigit

    #587182

    AWESOME worked perfectly. Close this thread :)

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘One page needs different logo in the header’ is closed to new replies.