Resolved

Also need to change google font loading

Ultra Theme started by knupp Nov 16, 2022 16 replies
knupp Nov 16, 2022 · 9:14 am #17112

Hello Andrew,

Like S before me, I also need to change where my fonts are being loaded. I have tried OMGF fonts though and it doesn’t seem to work (although I might be missing something, a setting or so?). I have tried another plugin before that called “Local google fonts”, but that doesn’t find all the fonts either. Can you please help me? I am a bit worried because this could get really expensive. The site I need help with is wilde-saiten.de. Thank you very much

Andrew Misplon Puro Nov 16, 2022 · 2:14 pm #17114

Hi Knupp

Thanks for getting in touch. Please, take a screenshot of your OMGF settings and upload the screenshot to your Media Library or any online location and share the link. If you could perhaps also share a link to your site, that would helpful.

Andrew Misplon Puro Nov 16, 2022 · 4:59 pm #17125

Thanks for all the info. The important part of the OMGF plugin where you choose which fonts to exclude is further down the screen. Please, can you show me the settings page further down.

knupp Nov 16, 2022 · 8:22 pm #17127

Sorry, I have added another screenshot now. Please note that I used another plugin before OMGF, which tried to embed all fonts, maybe that’s why the plugin can’t find any (more) google-hosted fonts. Any random font-checker site does, however (I used https://sicher3.de/google-fonts-checker/), and I don’t know how to localize the fonts that are being shown in the results list.

Andrew Misplon Puro Nov 16, 2022 · 9:21 pm #17128

Thanks for the update. You can click Save and Optimize at the bottom of the screen to get things going. Once you’ve done that, you’ll see the available Google Fonts. You can then choose how you’d like to load them.

knupp Nov 17, 2022 · 10:35 am #17129

Well I had done that of course but it doesn’t change anything. The leftover fonts are still not found or replaced.

knupp Nov 17, 2022 · 10:43 am #17130

Can you plase help me locate them because I don’t know how to find them on the site?

knupp Nov 17, 2022 · 3:29 pm #17131

I have added another screenshot showing the font checker results. Is there a way of finding the fonts on the site with the specified paths, maybe search and replace (but what/where?)? Thank you for your help.

Andrew Misplon Puro Nov 17, 2022 · 4:03 pm #17132

Unless you can locate the fonts and then enable the option to not load, the plugin won’t work. That action must be taken. I’m unsure why the plugin is not finding fonts. You should see a result like this https://imgur.com/a/cAqnjuL.

To confirm, after clicking Save and Optimize, if you scroll back down to the font section there are no fonts present?

Do you have an Ultra Premium license?

Andrew Misplon Puro Nov 17, 2022 · 4:05 pm #17133

If you have another plugin activated that is trying to block Google fonts, please, deactivate that plugin first before proceeding with the OMGF setup.

knupp Nov 17, 2022 · 4:51 pm #17134

Yes, I do have an Ultra Premium license. And yes, I can confirm that there’s not a single font showing up on that list after clicking “save & optimize”. I suppose that is because, as said, I have used a different plugin before (on this site, too), which actually permanently replaces the fonts it finds by self-hosted fonts, so that will be the reason there are no fonts on display.
I have successfully found and replaced all fonts on several other websites that are running on a different theme and while it didn’t always work with one click, I’ve always been able to figure it out, but not here on this site. As I am not myself a coder, I don’t know how to search for pieces of code (e.g. calls for fonts) on the site, seeing as there seem to be quite a lot of different documents where it might be hidden and I don’t know where to start. Do you have an idea? I deactivated the child theme but it’ didn’t help. I have also deactivated every single plugin including my caching plugin, but as that did nothing to the results, I reactivated them all. Any ideas?

knupp Nov 17, 2022 · 5:07 pm #17135

Okay I’m sorry, you’re right, when I deactivate the caching plugin and then use OMGF, it does find a list of fonts!
When I check the boxes as in your screenshot, then click “save & optimize” (I’ll post another screenshot so you can check if I’ve done anything wrong), however, I still get the same font checker results.

Andrew Misplon Puro Nov 17, 2022 · 5:29 pm #17136

Thanks for the update. You can use email support if you have a premium license. Please, email me at [email protected]. Thanks again.

Andrew Misplon Puro Nov 19, 2022 · 10:43 pm #17137

For anyone reading, please, try the following in Code Snippets set to load on the site front-end:

function ultra_child_setup() {
	if ( function_exists( 'siteorigin_webfonts_remove_font' ) ) {
		siteorigin_webfonts_remove_font( 'Muli' );
		siteorigin_webfonts_remove_font( 'Lato' );
	}
	add_filter( 'ultra_import_google_fonts', '__return_false' );
}
add_action( 'after_setup_theme', 'ultra_child_setup', 30 );
knupp Nov 21, 2022 · 8:38 am #17141

Thank you very much indeed, Andrew! This works like a charm and the site has just passed the google-fonts-checker test! :)) THANK YOU!!

17 posts
Closed This topic is closed to new replies. Still stuck? Start a new topic in Ultra Theme.