Content of rteContent is generated by rich text editor and it has some limitation such as assigning class or adding data- or any other attribute.
While rteContent__ignoreHeaderStyling is injected by backend.
I tried .rteContent :not(.rteContent__ignoreHeaderStyling) h1 but it styled <h1> inside rteContent__ignoreHeaderStyling. I want to style any <h1> inside rteContent but not rteContent__ignoreHeaderStyling.
I could be wrong/confused but please correct me. Please help. Thanks in advanced.
If you want to style only the h1 inside .rteContent , you can create a class only for that h1 and call the class for styling so that other h1 inside .rteContent__ignoreHeaderStyling won’t get affected
You can do one thing, change the second h1 element to h2, one important note is you should only use one h1 element per page based on SEO standards, it will confuse the search engine crawler. It will create negative ranking in keywords.