Home › Forums › WoodMart support forum › Custom selectors issues after theme update to 6.1.0
Custom selectors issues after theme update to 6.1.0
- This topic has 5 replies, 2 voices, and was last updated 4 years, 2 months ago by
Bogdan Donovan.
-
AuthorPosts
-
June 23, 2021 at 9:31 am #301704
d_chParticipantHi,
After updating WoodMart theme from version 6.0.4 to 6.1.0, my attached custom selectors of ADVANCED TYPOGRAPHY stopped working. Actually the color and font weight is not working as desired. Could you please take a look on this?
Just to inform you that I also had issues while updating theme to 6.0.4 version (you can see my other ticket here: https://xtemos.com/forums/topic/custom-selectors-not-working-after-theme-update-to-6-0-4/)
Why custom selectors keep breaking at your latest theme updates? It is really difficult to check all of them at every site I have with your theme to see if everything works as previously.
Thank you in advance,
DimitrisAttachments:
You must be logged in to view attached files.June 23, 2021 at 9:58 am #301719
Bogdan DonovanKeymasterHi,
In Woodmart 6.1 update we added header and mobile menu elements to the automatic CSS generator which load parts of CSS styles only for elements which is placed on page. Since in that case, some styles are loaded dynamically, they are loading after child theme styles. Having custom CSS code selectors with same specificity as theme selectors make styles placed below advantage over others.
To remove style order advantage, custom CSS code selector need to have a higher specificity. In that case, body tag at the beginning will be enough. Here is example how to make your custom selectors specificity higher than theme style ones:
OLD
.wd-nav-mobile>li>a
NEWbody .wd-nav-mobile>li>a
OLD
.mobile-nav .searchform input[type=text]
NEWbody .mobile-nav .searchform input[type=text]
More about CSS specificity can be found here (https://css-tricks.com/specifics-on-css-specificity/).
If you don’t want to use automatic CSS generator, you can turn it off by enabling “Combine CSS files” option in Theme Setting => Performance => CSS (https://monosnap.com/file/ugxT4XxSYu3ne0gZUrO2WpOb7b6dSI)
Kind Regards
June 23, 2021 at 10:10 am #301724
d_chParticipantCould you also check a loading circle that is appeared for some reason under my Ajax Tabs title after the update?
Please check my attached screenshot.
Attachments:
You must be logged in to view attached files.June 23, 2021 at 12:52 pm #301816
Bogdan DonovanKeymasterThis issue was fixed in the recent theme hotfix update. Please try to update your theme to the latest version.
Kind Regards
June 23, 2021 at 1:37 pm #301851
d_chParticipantI updated theme to the latest theme version and the above issue still takes place.
In addition now my typography is not working as desired (my custom font is not loading on site).
June 24, 2021 at 6:10 am #302054
Bogdan DonovanKeymasterHello,
It was issue in our theme, we have fixed it on your site. Please, check now.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register