Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1376424

    i tried
    avf_transparency_logo_data and avf_header_setting_filter – but with no luck

    so how to have on a specific page a different transparency logo if both are svg files ( with png or jpg there are many options ) but with a svg file it seems that the replacement of the img tag to inline svg hampers the known methods.

    #1377246

    Hey Guenni,

    Thanks for contacting us!

    Could you please try using following code

    
    function replace_transparent_logo_on_some_pages($sub){
        if( is_page( 59 ) ){
            $sub = 'content of the SVG file here';
        }
        return $sub;
    }
    add_filter('avf_logo_subtext','replace_transparent_logo_on_some_pages');
    

    This does work on my local installation with SVG :)

    Best regards,
    Yigit

    #1377281

    The svg code itself – that might be possible – hope that linebreaks in the svg code do not disturb that solution.
    i will inform you about that trial.

    Edit: that works – if you have set to the enfold options a transparency logo on default. If it is set – we can replace that – with your snippet.

    Is solved – Thanks

    #1377282

    Hi,

    Great!

    Merry Christmas and Happy New Year! 🎅🎆

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Logo for transparency for secific page ( header_replacement_logo )’ is closed to new replies.