I’ve styled the Page Titles on Archives Page, but the styling is not showing properly in search results. I’d like to know how to get my CSS to work or remove the styling from the Search results page.
This is my CSS which works on the Archives Page, but not on search results:
h1.page-title {
display: grid;
grid-template-columns: 1fr auto 1fr;
grid-gap: 20px;
text-transform: lowercase;
letter-spacing: 2px;
font-style: italic;
}
h1.page-title:before,
h1.page-title:after {
content: ”;
align-self: center;
border-top: 1px solid #999;
}
Type herbs in the search field and you’ll see the broken styling. How would I fix it or remove the styling from the search results?