1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Search Result Treatment

Discussion in 'Styling and Customization Questions' started by tonmo, Dec 29, 2013.

  1. tonmo

    tonmo Active Member

    I'd like to add something to extra.css to differentiate the way results appear, depending on whether the result points to a Page, or a Post, or something else. For example, maybe "Page" results should have a green background. Can someone point me in the right direction?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can use the various classes:

    .searchResult .post .primaryContent
    .searchResult .thread .primaryContent
    .searchResult .page .primaryContent
    tonmo likes this.

Share This Page