• Hi

    i have added a code in functions.php file to remove google fonts
    but i faced some issues

    issue 1: all Pages appear unbalanced on mobile
    screenshot: https://snipboard.io/8907dh.jpg

    how it was before i add the code
    screenshot: https://snipboard.io/Hik1DJ.jpg

    The code that i added:

    ( add_action( ‘wp_enqueue_scripts’, function() {
    wp_dequeue_style( ‘generate-fonts’ );
    } );

    any solution to remove google fonts without this issue?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 8 replies - 16 through 23 (of 23 total)
  • You can skip 3. if it’s not applicable.

    Try adding this through Additional CSS as well if all these steps don’t work:

    html, body {
    overflow-x: hidden;
    overflow-y: show;
    position:relative;
    }
    Thread Starter younesayad

    (@younesayad)

    hi @fernandoazarcon2

    i tried this one but No chance

    I minimize my font size from 18 px To 16 px, Now the issue doesn’t appear anymore

    But the Font looks so small Now, i think if there is a better solution will be good

    Thread Starter younesayad

    (@younesayad)

    Hi

    i fixed this issue

    i changed this

    ‘<label for=”author” class=”screen-reader-text”>%1$s</label><input placeholder=”%1$s%3$s” id=”author” name=”author” type=”text” value=”%2$s” size=”27″%4$s />’,

    the size was 30 and I changed it to 27 in GP theme editor

    specifically here GeneratePress: comments.php (inc/structure/comments.php)

    is it normal to change these things? or I should not

    Thanks

    ying

    (@yingscarlett)

    No, the theme files are not supposed to be modified directly.

    If you have to, you’ll need to use a child theme, take a copy from the parent theme folder, paste it into your child theme folder, then you can modify the file in your child theme.

    The reason for that is when the theme gets updated, the files in the parent theme will be updated as well, and all your modifications will be erased.

    But I don’t think this is the solution.

    As you can see there’s type = "text"in the code, but on the front end, this part is missing. I wonder if there’s any plugin that altered the code.
    https://www.screencast.com/t/0O0qpbo8lG

    Can you let me know what’s the test result for each step?

    Thread Starter younesayad

    (@younesayad)

    i did all steps that you told me to do

    and nothing changed, the issue still appeared on all posts

    ying

    (@yingscarlett)

    Changing to a twenty-twenty theme doesn’t solve the issue?

    If the issue happens to a twenty-twenty theme as well, then I’m afraid it’s not a GP issue.

    Thread Starter younesayad

    (@younesayad)

    Hi @yingscarlett

    you’re right

    Changing to a twenty-twenty theme solved the issue?

    what’s Next?

    ying

    (@yingscarlett)

    Can you try deleting the GeneratePress theme, then re-install it?

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘unbalanced Pages on Mobile’ is closed to new replies.