Hi,
I’m trying to fix some WC3 Validation errors as part of an Accessibility Audit. I’m using the script below to remove pipes from the Google Font URLs:
add_filter( 'generate_typography_google_fonts','tu_convert_font_pipes', 100 );
function tu_convert_font_pipes( $google_fonts ) {
return str_replace( '|', '%7C', $google_fonts );
}
This appears to have worked for the fonts loaded by GP, but there seems to be something else also loading Open Sans and Lato which still has the pipes in the URLs. Elementor is used on the site but I have disabled default fonts, so that shouldn’t be loading anything.
Is there any way of tracking down what plugin may be loading these duplicate fonts? I’ve tried using browser inspector and looking at the source code but it doesn’t give me any clues.
Any help appreciated.