Site logo

Archived topic

Changing the heading on search results

5 replies · Started by Francis on May 15, 2019

Viewing posts 1–6 of 6

Hi,

I need some assistance on changing the heading on search results. For reference, I am working on this website for a client:

https://apartmentsforrentx.com/

I'm a newbie web developer and I don't know how to tweak the search results css header from h2 into h4 or h5. Otherwise, if not possible at least to just change the font size to a smaller one only for searh results. I believe it calls the heading via hook/callout function from the single page? But, I only need this particularly for "Search Results" and so I don't intend on changing the single page heading at the same time. So I want the title to stay being on H2 for every single post/page and leave it untouch.

Regards,
Francis

Hi there,

you could target the entry titles for the search results page with this CSS:

.search .entry-title {
    font-size: 16px;
}

Where did you add the CSS? I can't see it.
Can you flush and disable autoptimize so i can take another look

Maybe i got my wires crossed. Are you looking to change the H2 entry title for each of the articles displayed on the Search results? That is what that CSS does and is working on my end.

This archived topic is closed to new replies.