@longnguyen89
Hi,
thanks for the answer.
I used the code to register the style:
add_action( 'wp_enqueue_scripts', 'register_custom_theme_styles' );
function register_custom_theme_styles() {
wp_register_style( 'styles.pure', '/wp-content/themes/flatsome-child/assets/css/styles.pure.css' );
wp_enqueue_style( 'styles.pure' );
}
Is this the correct method?
2. See the screenshot
https://ibb.co/BrbtVXy
– the critical chain is shown there
Pure css contains selected lines of css code from your plugin. That element is contained there somewhere.
@font-face {
font-display: swap;
font-family: crstar;
src: url(https://liveflooring.com/wp-content/plugins/customer-reviews-woocommerce/fonts/star.eot);
src: url(https://liveflooring.com/wp-content/plugins/customer-reviews-woocommerce/fonts/star.eot#iefix) format("embedded-opentype"),
url(data:application/x-font-woff;base64,d09GRk9UVE8AAAUYAAsAAAAABwwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABCAAAAecAAAI9UeEZGEZGVE0AAALwAAAAGgAAABxnRmscR0RFRgAAAwwAAAAdAAAAIAAxAARPUy8yAAADLAAAAE0AAABgUhDeOmNtYXAAAAN8AAAASgAAAVrgThNyaGVhZAAAA8gAAAAuAAAANvxCCQloaGVhAAAD+AAAAB4AAAAkBCr//2htdHgAAAQYAAAAEAAAABAGNAAAbWF4cAAABCgAAAAGAAAABgAEUABuYW1lAAAEMAAAANsAAAGDcVTN9HBvc3QAAAUMAAAADAAAACAAAwAAeJw9UEtIVFEY/s+de5vJbvOwGavhZrof8y6KXIRuwh5UG1PTooVulHQmZCxn4SbDIU4PmoZWLWsaJYpalEKLJqKwEqTaFSKBQpgPsMchxr7+w63u6uP+3+t8gkyThBCB3u5UfyqVJGGQoEblGGqHT20zpe2TtlldQdtbKiHlf2D75Rn1QKUth86FHKKwQ8MRh4KOUV9JPu0RoBBVDSZ7m13X/Wv+L4O/3XRcZMnURJN6xC1RUPkgxObMCZWOAfd+TAHtpddAc2sTMG/VgEY7tgLDdgCYO1QGDkSfggrhBVD7saiHUHz4la8HXdDE4n6t6ARdWFPs0jYKiv+as7wMiJurtz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-reviews-woocommerce/fonts/star.ttf) format("truetype"), url(https://liveflooring.com/wp-content/plugins/customer-reviews-woocommerce/fonts/star.svg#star) format("svg");
font-weight: 400;
font-style: normal;
font-display: swap;
}
One more thing:
I’m using your plugin at the bottom of the product page – is there any way to delay styles.pure css as much as possible? I moved it with AssetCleanup from head to body but it didn’t do much.
-
This reply was modified 3 years ago by cometto.
-
This reply was modified 3 years ago by cometto.