• Leo

    (@wp_new_user)


    Hi, I am having some problems after changing the default language of my WP site.

    I am using WP 4.1, Avada theme and updated to Polylang to 1.6.2.

    When I write something in theme options, it should go for the default language (ES), as I suppose, but it appears for the second language (EN) and the main doesn’t change.

    also CSS changed made in theme options, do not affect the main (ES) language, I had to manually edit the style.css file.

    maybe there’s something wrong or I should have done something before changing the default language?

    Thanks,
    Leo

    https://ww.wp.xz.cn/plugins/polylang/

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

    (@chouby)

    Hi!

    With Avada, you have to use one set of options per language. You control the chosen set of options with the admin language filter (menu on top of your screen).

    Thread Starter Leo

    (@wp_new_user)

    Hi Chouby,
    I am sorry I am not sure I got it right.
    When I select a language as Espanol at the admin language filter and make changes in theme options, the changes appear in my English pages only. Spanish remains unchanged. and any change made in Strings translation doesn’t affect my pages either. I am unable to change the Spanish strings.

    Can I do something to correct it?

    Should I share website URL, any configuration or file, whatever that can help clarify the situation?

    Thanks,
    Leo

    Plugin Author Chouby

    (@chouby)

    Hi!

    What are your Polylang settings?

    Thread Starter Leo

    (@wp_new_user)

    Hi, here they are:

    The language is set from the directory name in pretty permalinks

    Hide URL language information for default language – UNCHECKED

    Remove /language/ in pretty permalinks

    The front page url contains the language code instead of the page name or page id – CHECKED
    When the front page is visited, set the language according to the browser preference – UNCHECKED
    Activate languages and translations for media – UNCHECKED

    Synchronization – Page template, Page order

    Plugin Author Chouby

    (@chouby)

    That should be OK.

    To be clear, strings translations have no effect with Avada because the theme uses its own multilingual feature (one set of options per language). I don’t know why they keep putting their options here.

    Since changing the default language seems to have created issues, maybe the best is resetting the options the hard way. Make a database backup (just in case). De-activate Avada. Go in your database. Look in the table wp_options for the options avada_options, avada_options_en, avada_options_es and delete them. Activate avada. Select English as admin language filter (in the menu on top of your screen). Set your options. Select Spanish as admin language filter. Set your options (unfortunaltely in Avada 3.7 you can’t set your options for all the languages at the same time. Hopefully this will be fixed in a future version as I porposed the fix to the Avada team).

    Thread Starter Leo

    (@wp_new_user)

    OK. Thank you. I will try to fix it the way you described.
    And one more thing, when I visit my website site.com it redirects to site.com/es and returns HTTP status 302. Can I make it 301 permanent redirect?

    Plugin Author Chouby

    (@chouby)

    This is 302 because the redirection is not permanent. Depending on your browser languages preferences, you will be redirected to one or the other language.

    Polylang uses the standard wp_redirect function. Thus you can use the filter ‘wp_redirect_status’ to change the status code.

    Thread Starter Leo

    (@wp_new_user)

    I was not able use the filter. I tried to 301 redirect those URLs from .htaccess, but the website returned 500 Internal error. I do not think I can manage it myself. Can you please help me with this? Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Something went wrong after changing the Default Language’ is closed to new replies.