Site logo

[Resolved] extra whitespace with updraftplus

Home Forums Support [Resolved] extra whitespace with updraftplus

Home Forums Support extra whitespace with updraftplus

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    #2406951
    Ying
    Staff
    Customer Support

    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.

    #2406959
    Ken

    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.

    #2407003
    Ken

    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.

    #2407045
    Ying
    Staff
    Customer Support

    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?

    #2407066
    Ken

    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.

    #2407085
    Ken

    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. ٩( ᐛ )و

    #2407134
    Ying
    Staff
    Customer Support

    a-batta-bing-a-batta-boom…

    Lol.. I can sense the happy feeling 😛
    Glad you sorted it out!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.