• Resolved mvcc2

    (@mvcc2)


    Hi there,

    I am facing some issue with Polylang.

    First one:
    Searchbox works fine, except when we activate permalinks (%POSTNAME%). If we do, and then do a search, it redirects toward 404 error page, and it seems that search query is not detected as such. This seems to be due to the fact that when Polylang is active, index isn’t “mysite.fr” anymore but “mysite.fr/accueil/” (where accueil is the static page used for home).

    Do you guys have any hint how to solve this? I saw a very close thread of 1 year ago, but it was said that this issue had been solved in later version of Polylang.

    Second issue:
    Portfolio translation doesn’t work (Finch theme). This seems to be a regular issue, but I couldn’t find great ways to address it.

    Anyway, thanks a lot in advance for any hints !

    Regards,

    MVCC

    https://www.ads-software.com/plugins/polylang/

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

    (@chouby)

    First: Could you post a link?
    Second: Is there a portfolio custom post type detected in Polylang settings? If yes did you activate the language and translation management for it?

    Thread Starter mvcc2

    (@mvcc2)

    Hi Chouby,

    thanks a lot for coming back rapidly. here is a link:
    site

    Concerning second request, I went on Polylang settings, but there is no mention of such a custom post type detected, so I would say no.

    Thanks

    MVCC

    Plugin Author Chouby

    (@chouby)

    For searcform, you met a very rare case where Polylang does not succeed to identify you search form, probably because your theme does use standard ways provide by WordPress (either using a searchform.php file or the function get_searchform).

    There may be two workarounds that you can try:
    1. Check the option “The front page url contains the language code instead of the page name or page id” in Polylang settings.
    2. if the first does not work or you don’t want to modify your home url: put this code in your wp-config.php:

    define('PLL_SEARCH_FORM_JS', true);

    For the portfolio, how do you enter the content? I guess it is for case studies. And it really looks like a custom post type. Are you able to set the language in admin?

    Thread Starter mvcc2

    (@mvcc2)

    Hell Chouby,

    Thanks a lot for the help. Solution number 1 worked like a charm.
    The problem is now solved.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘searchbox messed up’ is closed to new replies.