HTML Block not accessible for WP Rocket to generate CPCSS
-
Dear,
I’d like to reopen this ticket and an action must be done on your side to allow HTML Blocks to be publicly accessible.
https://xtemos.com/forums/topic/woodmart-html-block-wp-rocket-critical-path-css-error/
As they are currently not accessible, WP Rocket is unable to generate Critical Path CSS for those blocks, and therefore WP Rocket is obliged to load all the stylesheets of those blocks asynchronously (without any minimal CSS at all) => causing improper user experience
Please investigate and change accordingly to allow it to generate CPCSS for HTML Blocks.
Thanks
Hello,
Try to edit the following file woodmart/single-cms_block.php
and remove the code shown on the screenshot http://prntscr.com/uerkq5
Kind Regards
Perfect, it’s working now.
However, there is still one issue. Removing this part of the code from the file is not good way to work in the long term, because it means that after every update I should go and remove it again.
Could you please provide me a shortcode to add in functions.php which will override this part of the theme file?
Thanks
Try to copy the whole file to the child theme and do the modifications there.
Perfect thanks, please close this ticket
The topic ‘HTML Block not accessible for WP Rocket to generate CPCSS’ is closed to new replies.