Optimize duplicated CSS
-
Hi, I’ve created a ‘card’ style content with Kadence blocks Row and Header. I’ve set some custom style on blocks settings. I’m using that card in a loop with dynamic content. They frontend page output displays a lot of cards.
I notice that Kadence Blocks duplciate the css <style> of the card for each displayed card. This is the duplicated CSS:
<style id=”kt-blocks_c731b4-ee”>#kt-layout-id_c731b4-ee{border-color:#f4f4f4;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow:hidden;}#kt-layout-id_c731b4-ee > .kt-row-column-wrap{padding-top:0px;padding-bottom:0px;padding-left:0px;padding-right:0px;}</style>
Is it possible to optimize it in some way? How can I set those styles just 1 time for all the displayed cards?
thanks
The topic ‘Optimize duplicated CSS’ is closed to new replies.