Home / Forums / WoodMart support forum / Problems with CSS in Single Product Layout
Home › Forums › WoodMart support forum › Problems with CSS in Single Product Layout
Problems with CSS in Single Product Layout
- This topic has 10 replies, 2 voices, and was last updated 4 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
February 18, 2026 at 9:16 pm #709105
J6SEParticipantHi Aizaz, hope you are doing well. I am having a problem I can’t figure out. I added custom CSS to the single product attribute text buttons, I also removed the ” : ” after the attribute name. For example instead of ” Color: ” it now says “Color”
The problem I have is that when the page loads, the CSS doesn’t apply, I have to refresh the screen one or two times and then I see the custom CSS in action.
What could be causing this behavior? I added the custom CSS to the add to cart widget in the single product layout. I tried adding the custom CSS to the woodmart settings custom CSS, I also tried adding it to elementor custom code section but I get the same issue. Is there a way to fix this or to add the custom CSS to be native? Attaching screenshots and links.
Attachments:
You must be logged in to view attached files.February 19, 2026 at 12:16 pm #709185Hello,
Thank you for your message. I’ve checked your site and tested this. After clearing the object cache, your CSS is now working correctly and applies immediately on page load.
See video for clarification: https://jumpshare.com/s/TsMei93mFJocqigUcigU
Please make sure to clear your object cache and any caching plugins after adding or updating custom CSS.
Best Regards,
February 19, 2026 at 11:52 pm #709302
J6SEParticipantThank you for your response Aizaz, When I clear the object cache it works but not for all products, when I open other products in an incognito browser, the buttons look normal without the CSS.
Is there another way? Any way of changing that CSS without adding it as custom? That way it can pull it correctly
I appreciate your help.
February 20, 2026 at 1:04 pm #709352Hello,
Please clear your site cache, browser cache, and check the site in incognito mode / another browser to confirm if the issue persists. I have added the css code in theme settings > custom cs code and checked it is working fine.
Best Regards,
February 27, 2026 at 10:30 am #710131
J6SEParticipantHI Aizaz,
Thank you for all of your time and help. The issue persists, I cleared the object cache, browser cache and as soon as you change products, the buttons go back to the bad form.
Is there another solution? I was thinking…….can I add that custom CSS to the styles always load part on the woodmart performance CSS settings? Do you think there’s a way to somehow include it there so that those CSS rules load all the time? See screenshot.
Attachments:
You must be logged in to view attached files.February 27, 2026 at 3:30 pm #710194Hello,
This is not related to where the CSS is added, and adding it to “Always load styles” will not fix the issue.
The problem is caused by CSS optimization or caching serving an old compiled CSS file when switching products.
Please Keep the CSS only in Theme Settings > Global Custom CSS and Go to Elementor > Tools > Regenerate CSS & Data
Then Clear all cache (object cache, page cache, CDN if any), If the issue remains Temporarily disable the CDN and check how it works.
Best Regards,
February 27, 2026 at 5:24 pm #710225
J6SEParticipantNo brother, doesn’t work. I tried clearing the elementor outdated CSS files and cached data in the database……disabled the cache etc but nothing works on picking up the custom css on first load.
Based on your experience with the theme, what can I do? Can I add the style directly to the theme somehow?
-
This reply was modified 4 months, 1 week ago by
J6SE.
February 27, 2026 at 9:55 pm #710253
J6SEParticipantHi Aizaz, please see private content for elementors response.
-
This reply was modified 4 months, 1 week ago by
J6SE.
February 28, 2026 at 10:47 am #710293Hello,
Override the rule with higher priority Add this in Theme Settings > Custom CSS > Global Custom CSS:
.wd-swatch.wd-text .wd-swatch-text { padding: 0 !important; font-size: 14px !important; /* adjust if needed */ }Best Regards,
March 6, 2026 at 2:14 am #711172
J6SEParticipantThank you Aizaz, I was finally able to make it work…..the custom CSS with !important rule under settings – custom CSS didn’t work but when added to the single product layout works perfectly. You can close this ticket….I appreciate your help
March 6, 2026 at 8:49 am #711187Hello,
You’re welcome! I’m glad to hear that you were able to get it working by adding the CSS directly in the Single Product Layout.
Thank you for the update and for confirming the solution. If you need any further assistance in the future, feel free to open a new topic.
Have a great day!
Best Regards,
-
This reply was modified 4 months, 1 week ago by
-
AuthorPosts
The topic ‘Problems with CSS in Single Product Layout’ is closed to new replies.
- You must be logged in to create new topics. Login / Register