Filter search settings in Academia Theme

  • Unknown's avatar

    This is my first post. I have two things I would like to do on my blog. The way the search function is set up currently, the results show full pages which clutters up the page. I would like to know if there is a way to have the search function search only posts, and if this is not possible, to have the search page show only the titles of posts and pages.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    What we can do is to target only the search results pages using the search CSS class from the opening body html tag and then hide the entry summaries. Add this to your custom CSS and see what you think.

    .search #content .entry-summary {
      display: none;
    }

    The following would hide pages from the search results.

    .search #content .page {
      display: none;
    }
  • Unknown's avatar

    Works great. I decided to just use the first one.

    I received a lot of help from you several years ago, and found your support awesome. Now that I am retired and have some extra time, I decided to start another web page. I chose the academica theme, for two reasons:

    1. It allows for about eight different widget areas. And I use a lot of widgets (which are unique to certain pages), and
    2. the Academica theme is one of the themes you are an expert in, and as I said above, I really appreciate your expertise.

    You can expect to hear more from me. I need a lot of help!!!

    Thanks.

  • Unknown's avatar

    Thanks for the kind words, and you are welcome.

  • The topic ‘Filter search settings in Academia Theme’ is closed to new replies.