• Hello, I have installed your plugin on wordpress. The problem is, the template for the wordpres site didn’t have a search.php page or a searchform.php page so I had to create one from scratch.
    Here’s the link to the one I created http://pastebin.com/1kwHtAyT

    I’ve entered your search form code to a page to test it.

    <form role="search" method="get" id="searchform" class="searchform" action="http://compass.itcilo.org/">
    <label class="screen-reader-text" for="s">Search for:</label>
    <input type="text" value="" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </form>

    But instead of returning with the search.php it returns with the index.php and it’s a mess. How can I fix this?

    https://wordpress.org/plugins/relevanssi/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Sorry, but no idea – that template seems fine to me.

    Thread Starter norasp

    (@norasp)

    Ok sorry, I was just testing it through the wrong backend. I have created now a search.php file but the attributes in it aren’t exactly the same as the ones in the other pages. I have the get_header order but the header is not the one shown on other pages. I was wondering if there is a way to redirect the search to a page instead of the blank search template that forms when calling the search.php file.

    Also, the search doesn’t seem to be indexing all the entries. How can I make sure that it has indexed everything?

    Greetings,
    Nora

    Thread Starter norasp

    (@norasp)

    Hey, sorry to write again. I’ve solved the problems above but the header is still not the one shown in the other pages when I type certain words on the search form, like learning. Is it because it is a learning platform and there are so many search results with learning on them that it kind of “breaks” the site? I haven’t created the theme so I really can’t know what’s going on there.

    Plugin Author Mikko Saari

    (@msaari)

    If a theme doesn’t have a search.php file, then the search is directed to index.php.

    To make sure search has indexed everything, click “Continue indexing”, until Relevanssi says the index is complete.

    I don’t know how your theme works, and figuring that out is unfortunately outside the scope of the support I can offer for Relevanssi.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search page from index.php’ is closed to new replies.