Support » Theme: Lovecraft » Does Lovecraft block search plugins

  • Resolved maparle

    (@maparle)


    I cannot work out if the problem is with the theme Lovecraft or with the plugin Relevanssi.
    I have installed and activated the Relevanssi search plugin. However search results are not using Relevanssi. Results page has not changed. Results have no highlighting of search term and show complete page(s) instead of extract, with no link(s) to page(s). The search form is in the page footer.
    I use Relevanssi on another site (different theme) and it works very well.
    Also I have tried activating another search plugin, Ivory Search, on this site and that does not work either.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @maparle,

    Lovecraft doesn’t do anything special with the search results, so if it isn’t behaving the way it should, my guess would be that the issue is in the plugin.

    — Anders

    I’m the search plugin author maparle went to next… The search plugin (Relevanssi) works fine with Lovecraft, it’s just that Lovecraft shows full posts on the search results pages (because there’s no specific search results content template). That’s what confused maparle.

    That’s not what most users except, so I would suggest making the default behaviour to show excerpts on search results pages instead of full posts – have that as an option if you like, but I’m pretty sure most users – and all search plugins – expect to see the_excerpt() instead of the_content() on the search results page.

    • This reply was modified 7 months, 3 weeks ago by Mikko Saari.

    Anders, It is Lovecraft that is the problem. I have made the changes to content.php as suggested by Mikko Saari and I now get excerpts and search word highlighted. However no link shown and excerpts not formatted as normally expected. Please think about adding a searchresults.php file to your theme to properly handle search query results. Thank you, Michael.

    Theme Author Anders Norén

    (@anlino)

    Hi @msaari,

    I see – thanks for the reply! And sorry for pointing fingers.

    @maparle: Outputting the excerpt strips the formatting from the content, which is why I prefer not using it. You can use the More block/button to cut off the content on archive pages and display a “Read More” button, like on the demo site: http://andersnoren.se/themes/lovecraft/ It sounds like that doesn’t work with the search plugin though, so you can leave the changes Mikko helped you with as-is.

    — Anders

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does Lovecraft block search plugins’ is closed to new replies.