Home › Forums › WoodMart support forum › User’s custom CSS keeps disappearing. Override styles issue.
User’s custom CSS keeps disappearing. Override styles issue.
- This topic has 11 replies, 2 voices, and was last updated 3 weeks, 3 days ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
September 17, 2025 at 11:44 pm #686910
ubistrulParticipantAt least the header styles, which are configured in the header builder, are constantly being applied and not applied. This most likely applies to the custom CSS in the header, but it likely applies to other parts of the site as well. The problem lies in the style override queue. My custom styles don’t require
!important
btw.There are no additional styles defined anywhere else in the settings. And everything works as expected on other sites with your theme.
Also, Convert large CSS files to inline styles in the performance settings does not affect the style loading order.
Attachments:
You must be logged in to view attached files.September 18, 2025 at 1:10 pm #687003
Aizaz Imtiaz AwanKeymasterHello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.
Best Regards,
September 18, 2025 at 8:19 pm #687115
ubistrulParticipantHere we go!
September 19, 2025 at 10:02 am #687153
Aizaz Imtiaz AwanKeymasterHello,
You have missed the admin login URL. Can you please share the WP admin login URL in the private area so I can check and give you a possible solution?
Best Regards,
September 19, 2025 at 6:23 pm #687272
ubistrulParticipantOh, I’m sorry. Here it is!
September 20, 2025 at 9:56 am #687317
Aizaz Imtiaz AwanKeymasterHello,
You can try adding the
!important
flag to your custom CSS rules so they take priority over the theme’s default styles.Like this:
.wd-tools-inner { width: 100% !important; }
Best Regards,
September 20, 2025 at 7:43 pm #687363
ubistrulParticipantI don’t like this solution. I specifically wrote that I don’t use it on purpose. Either the theme or my system has the order of the downloaded files set incorrectly. Can I hope your specialists will look into this?
September 22, 2025 at 8:45 am #687446
Aizaz Imtiaz AwanKeymasterHello,
Would you like this custom CSS to be applied only within the Header Builder? Could you please specify which other areas of the site are being affected by this code? Also tell me what you actually want to do?
Best Regards,
September 23, 2025 at 10:09 pm #687740
ubistrulParticipantHello,
It seems like the rest of the site’s CSS remains intact. Don’t you just think this is still a problem?
I don’t want to do anything special about it, but using !important seems highly questionable to me. Due to its maximum priority and the fact that it might be needed at another stage in the chain.
September 24, 2025 at 10:12 am #687819
Aizaz Imtiaz AwanKeymasterHello,
I have reviewed your custom css. When you copy CSS directly from the browser’s developer tools, you’re often copying styles that are already applied by the theme. Those styles may change depending on the header layout, so pasting them into Custom CSS doesn’t always work reliably.
If you’d like to apply permanent styling changes:
- Please avoid copying the exact CSS rules you see in the inspector, as those are already part of the theme.
- Instead, create custom override rules with your own selectors. This way, you’re not duplicating theme code but adding only what’s needed to adjust the design.
This way, your changes will always override the theme defaults. If you have any questions, feel free to contact us.
Best Regards,
-
This reply was modified 3 weeks, 4 days ago by
Aizaz Imtiaz Awan.
September 24, 2025 at 5:11 pm #687928
ubistrulParticipantCould you be more specific about what you mean? Do I need to write a higher-priority selector?
For example, I need to select button elements in the header. If I can’t assign a custom class to the element, how do you suggest accessing it? I’d ask you to write a specific CSS selector so I understand you correctly.
Is it okay that, in fact, if I select exactly the same selector as in the theme, then due to the correct priority of loading style files, the problem will be solved?
September 25, 2025 at 10:04 am #688014
Aizaz Imtiaz AwanKeymasterHello,
For example, if you’d like to adjust the header tool icons and text, you can use selectors like this:
.whb-header .wd-tools-element .wd-tools-icon:before { font-size: 25px !important; color: #ff0808; }
.whb-header .wd-tools-element .wd-tools-text { color: red !important; }
.whb-header .wd-tools-element:hover .wd-tools-text { color: blue !important; }
This approach avoids duplicating the theme’s full CSS and only overrides the parts you want to change.
Best Regards,
-
AuthorPosts
Tagged: css
- You must be logged in to create new topics. Login / Register