Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1415945

    Hi Team,
    after update to with new accessibility: added aria-label=’title” or “alt” or “Logo” to logo “a” tag the filter for textlog works no more:
    // Textlogo
    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    $sub .= “<h1>Musikschule Jüttner & Co.</h1>”;
    return $sub;
    }
    After Update I get an output llike this:
    <a href="https://www.musikschule-juettner.de/" aria-label="<img src=" https:="" www.musikschule-juettner.de="" wp-content="" themes="" enfold="" images="" layout="" logo.png'="" height="100" width="300" alt="Musikschule Jüttner & Co." title="">' title='<img src="https://www.musikschule-juettner.de/wp-content/themes/enfold/images/layout/logo.png" height="100" width="300" alt="Musikschule Jüttner & Co." title="">'><img src="https://www.musikschule-juettner.de/wp-content/themes/enfold/images/layout/logo.png" height="100" width="300" alt="Musikschule Jüttner & Co." title=""><span class="subtext avia-standard-logo-sub"><h1>Musikschule Jüttner & Co.</h1></span></a>
    Hope you can fix this?!
    Thank you and best regards
    Mike

    • This topic was modified 1 year, 3 months ago by Mike61.
    #1415971

    Hey Mike61,

    Thank you for the inquiry

    Are you trying to add the attributes to the logo subtext? You can add the attributes in the following line.

    $sub .= “
    <h1>Musikschule Jüttner & Co.</h1>
    ”;
    

    Please provide the site URL in the private field so that we can text the issue further.

    Best regards,
    Ismael

    #1415973

    Hello Ismael,
    did you not read my code under //Textlogo in my post??? There is exactly your line of code ;)

    Sending the URL is of no use, because it is an active page and I changed this back to the previous version of Enfold, so there are no problems with that. By the way: The page runs with this text logo already for years and this problem exists only since the last update!

    • This reply was modified 1 year, 3 months ago by Mike61.
    • This reply was modified 1 year, 3 months ago by Mike61.
    #1415978

    . just one moment – i had to see how to insert – with preserving shrinking header option

    • This reply was modified 1 year, 3 months ago by Guenni007.
    #1415980

    i think it is part of that discussion here: https://kriesi.at/support/topic/erroneous-output-if-no-logo-is-deposited/

    you can try that in the meantime:
    this is based on what you entered to customizer as blog name – but you can chante it to a given h1
    just insert for : $logo_heading = "Musikschule Jüttner & Co.";

    function change_logo_on_empty_logo_input($logo){
      $link = apply_filters( 'avf_logo_link', home_url( '/' ) );
      $logo_heading = get_bloginfo( 'name', 'display' );
    
      if(empty(avia_get_option('logo'))){
        $logo = '<span class="logo text-logo"><a href="'.$link.'"><h1>'.$logo_heading.'</h1></a></span>';
      }
      return $logo;
    }
    add_filter('avf_logo_final_output','change_logo_on_empty_logo_input');

    and for quick css:

    .logo.text-logo a {
      line-height: inherit !important;
      max-height: inherit !important;
    }
    
    #top .logo.text-logo a h1 {
      margin-bottom: 0 !important;
      display: inline;
      vertical-align: middle;
    }
    #1416050

    Hi Guenni,
    You’re absolutely right, that’s the subject of the post you indicated. I have installed the fix and everything is working again. Thanks for your advice!

    Best regards
    Mike

    • This reply was modified 1 year, 3 months ago by Mike61.
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘After Update Textlogo don’t work’ is closed to new replies.