My eCommerce store is on WordPress and we recently switched from Opencart. We're facing some challenges related to product descriptions. Each product has its own unique CSS in the description, similar to how it was done in Opencart with CSS tags starting with a style tag followed by HTML classes referenced in HTML tags.
Here's an example of code used in OpenCart:
I attempted to implement the same method in WordPress for product descriptions but it doesn't seem to be working as expected. The editor is only recognizing the HTML tags and not applying the CSS styles.
<style>
body {
font-family: Open Sans, Arial, Helvetica, sans-serif
}
#topDiv {
font-family: Arial, Helvetica, sans-serif
}
.tt1 {
color: #000;
font-size: 16px;
font-size: calc(100% + 24 * (100vw - 320px) / 1600);
font-size: calc(16px + 24 * (100vw - 320px) / 1600);
line-height: 1.2;
font-weight: 700
}
</style>
<div class="tt1">Pair Seamlessly</div>
The displayed content shows "Pair Seamlessly" without any styling applied from the CSS tag.