H2 On Blog/Article Page Gets Assigned a Class

This question is for a WordPress website that uses a custom theme.

When I add an H2 to a blog, I noticed there is a spacing issue. I inspected the page and for some reason H2s on blog/article pages get assigned their own class (.searchresults h2).

enter image description here

This does not happen for other headings such as H1, H3, etc…

I am not sure where the “searchresults” class came from, so I don’t want to make custom changes to the “.searchresults h2” element style.

I have thought about adding a new element style to the custom css section, such as: “.searchresults single-post h2”, but not sure if that is the best approach or would even work.

A user on Stack Exchange suggested using Javascript that will revert the searchresults h2 to h2.

[... document.querySelectorAll('h2.searchresults')].forEach((heading2) => {  heading2.classList.remove('searchresults');  }); 

Is it possible to use a function to achieve this?

Any suggestions on how to resolve this issue?

20 ++ Original Text for your Blog/Article Site for $20

I will spin any normal text file 20 to 50 or more (in fact $ 1 per version, 100 = $ 100. minimum 20) to produce different original new texts for your blog or article website. Excellent for private Blog Networks (PBN). Spinning text mean that I use synonyms and complete substitution expression for each version of your original text. Example: Mary has a little lamb, he is white like snow. Can be: Juliet owns a small baby sheep, he is pale like the moon. or: Dave possess a young ram, he is light color like milk. The longer the text the better the effect. I charge in fact $ 1 per version, minimum $ 20. Just send me your title and your text, I will return a zip file containing all the version you bought. You can include URLs or replace some words with one. Example: I like to trade forex May become: I like to trade forex Contact me for me fine tuning details

by: txtspinner
Created: —
Category: Content & Writing
Viewed: 98