Archived topic
Relevanssi Mutlisite Search
7 replies · Started by Daniel on April 30, 2019
Hello Tom,
Hello GP-Team,
I want to use the Relevanssi Multisite Search, as described in their knowledge base:
https://www.relevanssi.com/knowledge-base/multisite-search/
They want me to modify my search results template (look in the second paragraph).
I wonder if there is a update secure modification with elements or a code snippet is available for this job?
Best wishes
Daniel
Hey Daniel,
Unfortunately, it looks like you'll need to copy the search.php file and add it to your child theme. Then you'll need to make those template changes.
I don't think it can be achieved with hooks.
Let me know if you need more info :)
ok Tom, I'll try to do so. I never used a childtheme before.
What happens to my options and custom CSS when I switch to the childtheme? Are they still present?
Found the documentation and hope to get it it managed :-)
Worked very well! I used siteorigin CSS and this went into the childtheme too.
Another related question:
There is another interesting customisation "Sort posts by blog" (fourth subheading in link above). Adding the snippet shouldn't be a problem. But what does Mikko mean with:
This will cause the search results to sort by blog ID. In order to get headings between the blogs, watch the $post->blog_id in the search results template and when you notice a change, print out a heading.
Hmm, I'm not sure what's meant by blog ID. It could possibly be the ID of each subsite on your multisite install?
ok, so it isn't a theme thing. I'll ask him for an example.
Thanks a lot, Daniel
No problem :)