Hello Nabeel,
Thanks for the provided snippet.
A bit of a brutal solution haha. We do rely on the format-standard class so we’ve gotta find another way but I appreciate the effort.
Also, loading a JS on all pages of the website when it’s only really needed on the single-post pages is against our performance guidelines.
Is there a core file we can edit somewhere to remove this without JS? We could eventually just alter the rule slightly so that we maintain the functionality of the theme (since this must be handled somewhere, although it’s not entirely clear where because we have the post links styling disabled) but it doesn’t conflict with other elements.
Changing the rule from…
.format-standard .entry-content a:not(.x-btn):not(.x-img-thumbnail) {
border-bottom: 1px dotted;
}
to…
.format-standard .entry-content a:not([class]) {
border-bottom: 1px dotted;
}
Makes it so that only bare <a> links without class are targeted, which is often the case for links that are added directly inside a post content. If you add a link to an image, a button or have floating social buttons in your content, they wouldn’t be targeted because all of these tags are bundled with a class and they won’t have a dotted border bottom.
This is not 100% fool proof, if you have a link in your post and you add a custom class, it wouldn’t be styled, but my guess is that if you add a custom class, you want to style it differently anyway.
So maybe a suggestion to change this rule as instructed for a future release and in the meantime is there any way for us to do that?
Thank you!
All best,
B