• Hello!
    I am developing my first WordPress theme for my website. Its almost ready to use, but I would like to add option for visitors: to switch between the languages. Default language will be my local, but if the reader wants, it could be changeable to english. Is there a possibility to translate also the menus and headings (tags, categories and titles)?

    If you know the php function or plugin needed for, please share 🙂
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • No need to add it as a theme feature. There are lots of plugins that will translate a website for you:

    https://wordpress.org/plugins/search.php?q=translate

    Note: This kind of function is plugin territory, not theme territory. If you submit a theme with this feature for distribution on wordpress.org, it will be rejected.

    If, on the other hand, you are creating a theme for your own use only, you can do whatever you want.

    Thread Starter terendus

    (@terendus)

    Hi! Thank you for your answer.
    I still wondering, is there a function I can add in my theme for language switching option?
    If I use the plugin, I need to redesign the classes and if the plugin will be updated (and classes are changed), I have to redesign all it again and again.
    I do not want to use machine translation. I do not need to translate pages or posts content, because there are mainly pictures, galleries, videos and design-portfolio.
    But it will be nice, if the user can choose either, read the site (and also the menus, headings, titles, categories and tags) in English or in my local language.
    What is the simplest way to do that for my theme (only my own use)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme option: button for switch between the languages’ is closed to new replies.