eddiesigner / liebling

Beautiful and clean Ghost theme that is easy and comfortable to use. To get the latest version please head over the releases page 👉🏼
https://github.com/eddiesigner/liebling/releases
MIT License
1.27k stars 602 forks source link

Tertiary Navigation for Languages? #367

Closed Arberoo closed 3 years ago

Arberoo commented 3 years ago

Hello,

I managed to setup multi-language support for our blog, https://blog.cakedefi.com - the German and Italian versions can be found under the URL https://blog.cakedefi.com/de and https://blog.cakedefi.com/it respectively, easily manageable with #tags

The issue currently however is that there is no navigation to select the blog language. A user would have to manually type in the /de or /it URL.. not very user-friendly.

I now wanted to setup a "language" dropdown menu in the navigation, however only can edit a "primary" navigation (where everything directly appears in the navigation bar) or a "secondary" navigation, where every link is selectable after clicking on "More" in the bar.

Question: Is there a way to setup a "tertiary" navigation, that I can call "Select Language" instead of "More" ?

If not, is there a way to change the wording of the secondary navigation from "More" to "Select Language"?

Thanks very much in advance.

eddiesigner commented 3 years ago

In your case I would use the secondary navigation for those links. You can change the string "More" like this:

  1. Unzip the theme file.

  2. Open the file locales/en.json with a text/code editor.

  3. Search for the following line:

 "More": "More",
  1. Replace the text on the right side with yours and save your changes.

You might also want to do the same with the files de.json and it.json.

  1. Zip the theme folder and upload it again.
Arberoo commented 3 years ago

Worked perfectly, thanks.