Forum Replies Created

Viewing 8 replies - 31 through 38 (of 38 total)
  • Thread Starter travisburch

    (@travisburch)

    @acosmin so strange. Broke my site again (this time only used ‘Live Preview’, so it didn’t actually break the site.)

    I thought I had it figured out, because I had altered the parent theme file, but I just deleted and reinstalled Twenty Twenty before this test.

    Not sure what the issue is.

    “There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Learn more about debugging in WordPress.”

    • This reply was modified 4 years, 11 months ago by travisburch.
    Thread Starter travisburch

    (@travisburch)

    @kitchin Appreciate your input, here!

    Thread Starter travisburch

    (@travisburch)

    @acosmin

    Saw this on the webpage.
    “There has been a critical error on your website. Learn more about debugging in WordPress.”

    In the dashboard, it said ‘a problem has been detected with the Twenty Twenty theme” (or something to that affect). It said it had paused the theme (I believe. It’s almost like it had reverted away from the child theme in the process, too (it didn’t appear activated in recovery mode). If it happens again, I’ll copy the error code.

    Okay, I’ll try it again. I’ve got the whole functions.php file copy+pasted, rather than importing the file from the parent file.

    Thread Starter travisburch

    (@travisburch)

    @acosmin

    Hmm, seemed to break my site. Had to use recovery mode.

    It seemed like it affected the parent theme, somehow. The site said the problem was the parent theme, even though I only edited the child theme functions.php file (while the child theme was activated). Hmmm.

    • This reply was modified 4 years, 11 months ago by travisburch.
    Thread Starter travisburch

    (@travisburch)

    @acosmin

    Okay, going to give this a try right now…

    Thread Starter travisburch

    (@travisburch)

    @raqai @acosmin — Thanks so much for your work here.

    Is this the code needed? And it’s added to functions.php in child theme?

    add_action( 'wp_head', function() {
            ?>
            <style>
            body,
            input,
            textarea,
            button,
            .button,
            .faux-button,
            .wp-block-button__link,
            .wp-block-file__button,
            .has-drop-cap:not(:focus)::first-letter,
            .entry-content .wp-block-archives,
            .entry-content .wp-block-categories,
            .entry-content .wp-block-cover-image,
            .entry-content .wp-block-latest-comments,
            .entry-content .wp-block-latest-posts,
            .entry-content .wp-block-pullquote,
            .entry-content .wp-block-quote.is-large,
            .entry-content .wp-block-quote.is-style-large,
            .entry-content cite,
            .entry-content figcaption,
            .entry-content .wp-caption-text {
                    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif !important;
            }
    
            .widget_text p,
            .widget_text ol,
            .widget_text ul,
            .widget_text dl,
            .widget_text dt,
            .widget-content .rssSummary,
            .entry-content p,
            .entry-content ol,
            .entry-content ul,
            .entry-content dl,
            .entry-content dt {
                    font-family: "Hoefler Text", Garamond, "Times New Roman", serif !important;
            }
            <?php
    }, 5 );
    Thread Starter travisburch

    (@travisburch)

    Thanks for everyone’s input!

    Thoughts Re: speed.

    I agree that 3.5s isn’t horrendous and unusable. On the other hand, I don’t have the content/draw/market/buzz that Amazon and CNN have. I need to give people zero reasons to leave the page, if possible, and the user experience needs to be above average. It’s a membership site with lots of health content, so repeat users are very important. And yeah — the font seems to slow down the entire site even after everything is cached, somehow.

    It’s really amazing how much the font slows down the entire functions of the site!

    Additionally, around the world, load times are much longer. I don’t want people in India waiting 9 seconds only because of a font, when it might otherwise be 5.

    It’s just a matter of this: It seems like an absolutely silly reason to be ONLY “not that bad.” Especially when excellent is an option with a simple, simple fix — fonts.

    Thread Starter travisburch

    (@travisburch)

    Thank you so much for your help!

Viewing 8 replies - 31 through 38 (of 38 total)