Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    I see you have a custom language switcher. The issue is replicable, let’s say, using a default language switcher like the floater one? Please, try it and let me know.

    Thread Starter kreatywnyonline

    (@kreatywnyonline)

    Hello @alexcozmoslabs .
    Yes, i use custom language switcher and i want add to “a href” in my custom image switcher works url to back to the default language. Is possible?

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Basically, the language switcher consists of a series of anchor tags with href attributes pointing to the equivalent page in different languages.
    It’s important to use anchor tags if you are planning to use the automatic detection from our pro plans.

    (
    English French
    )

    You can find the code for the already built language switchers here:

    1. Floater language switcher
    wp-content/plugins/translatepress/includes/class-language-switcher.php (function add_floater_language_switcher)
    wp-content/plugins/translatepress/assets/css/trp-floater-language-switcher.css

    ?2. Shortcode language switcher [language_switcher]
    wp-content/plugins/translatepress/includes/class-language-switcher.php ( function language_switcher )
    wp-content/plugins/translatepress/partials/language-switcher-shortcode.php
    wp-content/plugins/translatepress/assets/css/trp-language-switcher.css

    Use the code as an example of how to build a language switcher.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom build url lang = default change problem’ is closed to new replies.