Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1211044

    Hi there

    I need the TITLE tag on .logo in the header, the following snippet has worked out the last two years, but somehow and with the newest version not any more. Do you have any ideas how to put the TITLE tag to the Main Logo? ALT tag is showing, but not TITLE tag, which is “empty”.

    function custom_logo_attriubtes(){
    ?>
    <script>
    (function($){
    $(‘.logo img’).attr({ title:”Steimer Production AG”, alt:”Logo Steimer Production AG” });
    $(‘.logo img.alternate’).attr({ title:”Steimer Production AG”, alt:”Logo Steimer Production AG” });
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘custom_logo_attriubtes’);

    #1211057

    see discussion here: https://kriesi.at/support/topic/alt-for-transparent-header-image/

    there was a fix from ismael i think – but i hope the next update will fix that. And i guess we are a few days before release.

    the logo itself you can influence via filter – but the alternate logo ( used for transparency ) has no such filter.

    function avf_change_logo_alt($alt) {
       $alt = "Logo Steimer Production AG";
       return $alt;     
    }
    add_filter('avf_logo_alt', 'avf_change_logo_alt');
    
    function avf_change_logo_title($title) {
       $title = "Steimer Production AG";
       return $title;     
    }
    add_filter('avf_logo_title', 'avf_change_logo_title');
    #1211063

    Ah sorry – that with the title will not work – i had changed my functions-set-avia-frontend.php to have that extra filter
    on line 564 you see that avf_logo_alt Filter – i inserted an analogon with title.

    i replaced the line 566:

    $title			= '';
    

    with:

    $title			= apply_filters( 'avf_logo_title', get_the_title( $logo_id ) );
    

    sorry.

    #1211220

    Hi Stephan Webgecko ,

    Did you get it working with Guenni007’s help or do you need more help?

    Best regards,
    Victoria

    #1211258

    No – it is not solved at the end. Just for title if he will hard-code the parent theme ( Don’t know why the filter avf_logo_title is missing – that would be nice to have on default ) – and the alternate logo is not solved yet.
    But i hope that it will be solved on the update comming soon. See here: https://kriesi.at/support/topic/alt-for-transparent-header-image/page/2/#post-1199225

    #1211896

    Would be great to get ALT and TITLE tag with the logo IMAGE as default with a future release without PHP snippet

    #1212108

    Hi Stephan Webgecko,

    The issue is closed and will be in the next release, but we do not have an ETA at the moment.

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Title TAG on Main Logo in HEADER’ is closed to new replies.