Support » Theme: Forever » Search function shows entire pages, not summary

  • Resolved restaurantcritic

    (@restaurantcritic)


    My website is http://www.restaurantcritic.eu, and I have made the site to show pages rather than posts (to look like a website rather than a blog).
    Does anybody know if there’s a way to get the search function to show only a summary (a few lines of text) instead of showing the entire page with pictures and everything? I’ve installed extra search plugins that would sort the results by relevance rather than date, but this hasn’t helped with this theme.
    The problem is this theme as I have tried to switch to another theme, and with those other themes, the search results were exactly like I wanted them.

    Thanks for your help
    /Anders

Viewing 2 replies - 1 through 2 (of 2 total)
  • paulwpxp

    (@paulwp)

    Font hero

    Create a child theme.
    http://codex.wordpress.org/Child_Themes

    After the child theme is installed and activated and running properly.

    1. Copy over content-page.php from parent theme
    2. Rename it content-search.php put it in child theme folder
    3. Inside it, change the_content() to the_excerpt()

    Yaaaaaih! It worked! Thanks a lot!
    I did have to make some changes to my header pictures and menu items after installing the child theme, but that went quite quickly, so that wasn’t a big deal.
    Thank you very much for your help. Now I’m happier with my website 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search function shows entire pages, not summary’ is closed to new replies.