[Resolved] Relevanssi Mutlisite Search

Home Forums Support [Resolved] Relevanssi Mutlisite Search

Home Forums Support Relevanssi Mutlisite Search

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #883969
    Daniel

    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

    #884523
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #885126
    Daniel

    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?

    #885128
    Daniel

    Found the documentation and hope to get it it managed πŸ™‚

    #885154
    Daniel

    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.

    #885704
    Tom
    Lead Developer
    Lead Developer

    Hmm, I’m not sure what’s meant by blog ID. It could possibly be the ID of each subsite on your multisite install?

    #885767
    Daniel

    ok, so it isn’t a theme thing. I’ll ask him for an example.

    Thanks a lot, Daniel

    #885965
    Tom
    Lead Developer
    Lead Developer

    No problem πŸ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.