Archived topic
extra whitespace with updraftplus
7 replies · Started by Ken on November 8, 2022
Note: I've read the two related articles, I need more clarification.
Here's what the GP Child function. php looks like.
`
<?php
/**
* GeneratePress child theme functions and definitions.
*
* Add your custom PHP in this file.
* Only edit this file if you have direct access to it on your server (to fix errors if they happen).
*/
add_action( 'wp_enqueue_scripts', function() {
wp_dequeue_style( 'generate-fonts' );
} );
add_action( 'admin_init', function() {
add_filter( 'generate_google_fonts_array', '__return_empty_array' );
} );
Can you please tell me exactly what I need to do? Please see attached screenshot.
Hi Ken,
The article is written before we launch the dynamic typography sytstem.
If you are using dynamic typography system of GP? You will not need these PHP snippet anymore.
https://docs.generatepress.com/article/dynamic-typography-overview/
If you haven't switched to the dynamic typography, you can switch to it now:
https://docs.generatepress.com/article/switching-to-dynamic-typography/
Just need to untoggled the Google fonts option if there's any activated.
Hi Ying, I switched to dynamic typography, I still have the extrawhite space problem. See attached screenshot.
also, I'm not clear as to what PHP snippet I don't need anymore. The article you referenced didn't make it clear. Can you help clarify? Thank you.
Ah, okay, you meant the php stuff in my functions. I deleted it, however, I'm still getting the extra whitespace warning.
It's not the plugins, I deactivated the plugins and no change. When I changed themes that's when the Warning went away.
Do you have any other suggestions? Appreciate your help.
When I changed themes that’s when the Warning went away.
Does change to the parent GP theme work? Or it has to be other themes?
Yes, when I change to parent GP theme the whitespace warning goes away, it also goes away when I use the 2020 theme.
When I go back to the GP Child, the warning appears again.
Hey Ying! I fixed the problem. Since there was no extra code on both of the GP Child's style.css and the functions.php I went ahead and deleted the GP child, downloaded the child from GP website, reinstalled... a-batta-bing-a-batta-boom... no more extrawhite space waring. ٩(^ᴗ^)۶
So all is good to go here. Thank you for helping me. Please close this ticket with a smile. ٩( ᐛ )و
a-batta-bing-a-batta-boom…
Lol.. I can sense the happy feeling :P
Glad you sorted it out!