Tagged: , ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #396090
    #396091

    Maybe something like this except page & portfolio category specific?

    #396327

    Hey!

    Thank you for using Enfold.

    Yes, you can use that code on functions.php. Use is_page for pages and has_term conditional function for portfolio categories. Refer to these links:

    http://codex.wordpress.org/Function_Reference/has_term
    http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page

    Best regards,
    Ismael

    #400280
    This reply has been marked as private.
    #400710

    Hi!

    Yes it look good. We will keep the thread open, if anything comes up, feel free to post here : )

    Best regards,
    Yigit

    #408598

    Hi Yigit,
    The page’s code works, but there must be something up with my portfolio category code (I end up with a bank screen).
    Any ideas?
    Jas

    • This reply was modified 9 years ago by Jason.
    #408608

    This is the portfolio category;
    /wp-admin/edit-tags.php?action=edit&taxonomy=portfolio_entries&tag_ID=81&post_type=portfolio
    Should I be including the ID somewhere in that code?
    The slug is ‘south-canterbury-past-issues’ which I’m guessing is not what I should be using in this instance?

    • This reply was modified 9 years ago by Jason.
    #408883

    Hey!

    Can you post the link to your page where you would like to display a different logo?

    Cheers!
    Yigit

    #409579
    This reply has been marked as private.
    #409856

    Hey!

    Please use the code as following

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_tax('portfolio_entries','south-canterbury-past-issues') )
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    Best regards,
    Yigit

    #410128
    This reply has been marked as private.
    #410155

    Hi!

    I have added the code to Functions.php file of your child theme. Please review your website now

    Best regards,
    Yigit

    #410165

    Thanks Yigit,
    That has sorted it, many, many thanks!
    Jas

    #410168

    Hey!

    You are welcome, glad we could help!
    For future reference, function names were the same that was the issue. Let us know if you have any other questions or issues

    Cheers!
    Yigit

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Different header logo on some pages only’ is closed to new replies.