Home Forums WoodMart support forum HTML Block not accessible for WP Rocket to generate CPCSS

HTML Block not accessible for WP Rocket to generate CPCSS

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225082

    Jeriss Cloud Center
    Participant

    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

    #225097

    Artem Temos
    Keymaster

    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

    #225169

    Jeriss Cloud Center
    Participant

    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

    #225183

    Artem Temos
    Keymaster

    Try to copy the whole file to the child theme and do the modifications there.

    #225884

    Jeriss Cloud Center
    Participant

    Perfect thanks, please close this ticket

    #225933

    Artem Temos
    Keymaster

    Great, you are welcome.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘HTML Block not accessible for WP Rocket to generate CPCSS’ is closed to new replies.