Search not working with custom html homepage (4 posts)

  1. sonouna
    Posted 3 years ago #

    I really hope you can help with this, I have installed ZeePersonal on a WP blog (codifi.info/blog/) but we have now a custom index.html file that overwrites the homepage (codifi.info). Everything works fine except for the search, which displays the html homepage (with the correct url though, sth like http://www.codifi.info/?s=something).
    Any idea? I found other posts that referenced files wp-include/general-template.php or weird redirects in the code, but was wondering if anyone had a suggestion for this theme!



  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Have you hidden the search on the Home page? I can't see it to test.

  3. sonouna
    Posted 3 years ago #

    There's no search on the Home Page because the home page is a HTML file, not part of the WP theme! You have to try the search in any page of the blog, like
    codifi.info/blog/ or codifi.info/training/.

  4. sonouna
    Posted 3 years ago #

    Any idea about this?
    It generates the url correctly (codifi.info/?s=something) but it displays the static home page instead of the query result in a blog page.
    I can successfully run a search within a category or tag by manually typing the prefix in the url

    http://www.codifi.info/training/?s=something (CATEGORY)
    http://www.codifi.info/tag/archaeology/?s=something (TAG)

    but of course the results are limited.
    If I try under /blog/, which displays all posts, then I do get the right selection of posts, but no header "Search results for ..." and it still displays the slider :(

    Hope it's clearer now... I found more threads about this but they ended up having to substitute stuff in search.php that's just not there for me!
    Thanks for any help :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic