Search bug + customization

Viewing 5 posts - 1 through 5 (of 5 total)
  • #18920
    JMG
    Participant

    Hello,

    First of all, thanks for this great theme!

    However, it looks like there is a bug with the search form: it only works from the home page πŸ™ I always get a 404 error or an empty category when I run a search from anywhere else.

    Also, when I try to add extra features such as post navigation (previous and next) and related posts to single posts, I cannot have them appear where I want, that is below the Meta Utility, they always display betaeen the post content and the Meta utility… The template editor does not help in this case. The easy fix would be to add the piece of code these plugins provide in my templates so they appear where I want, but I have not found them yet, do I miss something?

    Thanks!

    EDIT: after some more testing, it seems that the search issue arises when you use permalinks, the search does work when you use the default “ugly” URLs.

    • This topic was modified 10 years, 3 months ago by JMG.
    #18933
    Daniel Tara
    Keymaster

    If the issue is related to permalinks it probably has to do with your server configurations and not the theme or WordPress. Are you using nginx by any chance?

    Try using priorities to add your post navigation and related posts. To make them appear below the meta utility try this code:

    add_action( 'enlightenment_entry_footer', 'my_post_navigation', 12 );
    add_action( 'enlightenment_entry_footer', 'my_related_posts', 12 );
    #18940
    JMG
    Participant

    Thank you for your reply Daniel.

    Regarding the search issue, I do not think it is server-related as everything works perfectly with Pinboard πŸ™
    The problem is that when you are on a page other than the home page and you run a search, the “?s=xxx” part is appended to the URL of this page instead of being appended to the home page URL, so when you are in a category, it returns results in this category only, and when you are on a single post page, it returns a 404 error…

    Here is my site address in case you want to try : http://www.lecoinduson.fr

    Thanks for your help!

    #18942
    Daniel Tara
    Keymaster

    You are right, there is a bug with the search form. It will be fixed in the next version.

    #18985
    JMG
    Participant

    Thanks, I am looking forward to it then πŸ™‚

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.