Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter steve92

    (@steve92)

    Solved.
    The theme’s search.php file contains this code and I took it off.

    <?php get_search_form(); ?>

    Plugin Author Mikko Saari

    (@msaari)

    Good to hear you solved this. Relevanssi doesn’t automatically add any search boxes, but uses the ones already in your theme.

    Thread Starter steve92

    (@steve92)

    I use the Donovan theme, in the search.php file there is no the_title(); where is it?

    Plugin Author Mikko Saari

    (@msaari)

    You need to ask the Donovan developers about that. They know; I have no idea.

    Thread Starter steve92

    (@steve92)

    SOLVED. In the file template-parts/content-excerpt.php replace <?php the_title( sprintf(... with <?php relevanssi_the_title( sprintf(...

    • This reply was modified 1 week, 3 days ago by steve92.
    • This reply was modified 1 week, 3 days ago by steve92.
    Plugin Author Mikko Saari

    (@msaari)

    It’s safer to do

    <?php if (function_exists('relevanssi_the_title')) {
    relevanssi_the_title(...);
    } else {
    the_title(...);
    }

    so your site doesn’t crash if Relevanssi is disabled.

    Thread Starter steve92

    (@steve92)

    I don’t know how to put it, this is my original code.

    https://snipboard.io/4kXAvW.jpg

    SOLVED

    • This reply was modified 1 week, 3 days ago by steve92.
Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.