-
AuthorPosts
-
August 9, 2023 at 5:53 pm #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.
August 10, 2023 at 8:32 am #1415971Hey 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,
IsmaelAugust 10, 2023 at 8:47 am #1415973Hello 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!
August 10, 2023 at 10:05 am #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.
August 10, 2023 at 10:19 am #1415980i 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; }
August 11, 2023 at 11:15 am #1416050Hi 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.
-
AuthorPosts
- The topic ‘After Update Textlogo don’t work’ is closed to new replies.