[Resolved] how to customize site search page?

Home Forums Support [Resolved] how to customize site search page?

Home Forums Support how to customize site search page?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1253811
    Data

    Is there any way to customize site search page?

    #1254043
    Leo
    Staff
    Customer Support

    Hi there,

    What would you like to change?

    #1254654
    Data

    title sizes and colors etc

    #1254904
    David
    Staff
    Customer Support

    Hi there,

    WordPress adds CSS Classes to the body tag of all pages. The search page has this class: search-results

    You can use that to target elements only on that page – for example changing the font size of the H1:

    .search-results h1 {
        font-size: 25px;
    }

    or adding styles to your H2

    .search-results h2 {
        /* your styles here */
    }

    You can also create a Header Element for it by selecting the Search Results display rule:
    https://docs.generatepress.com/article/header-element-overview/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.