Forum Replies Created
-
AuthorPosts
-
Matt M.
ParticipantI think this might work:
if ( is_category( 'your_category' ) ) { remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); }
Alternatively, you can just use CSS to hide the featured image.
Wordpress adds the category as a class to the html. So find the class-name of your featured images (often .wp-post-image) and then you could write css like this:
`
.category-categoryname .wp-post-image {
display: none;
}January 21, 2021 at 11:19 am in reply to: page speed optimization: Preload fonts (navigation pro) #502776Matt M.
ParticipantSomebody correct me if I'm wrong please, but I don't think you can preload fonts on your own domain. Preloading is for external resources.
Matt M.
ParticipantThe easiest way to include in a specific page is by using the Gutenberg 'custom html' block. Then literally just copy and paste that code you shared into the block. I'd put it at the top of your page.
I use this trick all the time to include custom CSS for an element that's only on one page, to avoid weighing down my main stylesheet.
Matt M.
ParticipantYour site scores an A on GTmetrix and a CLS of 0.06, so it looks like you've fixed your major issues. For some reason lighthouse in chrome inspector tools isn't quite as impressed.
For others struggling with this issue, it comes down to this:
You're loading the CSS and javascript that style your above the fold content too late. Get a plugin that generates criticall CSS and inline it in the head. Make sure to load Jquery and any other layout-affecting JS as render-blocking.
-
AuthorPosts