- This topic has 7 replies, 2 voices, and was last updated 3 years, 5 months ago by
Ying.
-
AuthorPosts
-
November 8, 2022 at 12:35 pm #2406930
Ken
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.
November 8, 2022 at 12:52 pm #2406951Ying
StaffCustomer SupportHi 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.
November 8, 2022 at 1:02 pm #2406959Ken
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.November 8, 2022 at 1:37 pm #2407003Ken
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.November 8, 2022 at 2:05 pm #2407045Ying
StaffCustomer SupportWhen 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?
November 8, 2022 at 2:16 pm #2407066Ken
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.November 8, 2022 at 2:31 pm #2407085Ken
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. ٩( ᐛ )وNovember 8, 2022 at 3:29 pm #2407134Ying
StaffCustomer Supporta-batta-bing-a-batta-boom…
Lol.. I can sense the happy feeling 😛
Glad you sorted it out! -
AuthorPosts
- You must be logged in to reply to this topic.