Add the language toggle block to the Navigation Menus

Hi all,

In my journal the languagetoggle block is well below the page. I want to add two shortcuts in the Navigation Menus. How can I language toggle block in the Navigation Menus?

Thanks in advance

Hi @ikram,

What version of OJS are you using? In version 3 you can always move the language toggle block to the top of the sidebar stack by dragging it up, in Settings -> Website -> Appearance.

Cheers,

I use OJS 3.1.1.4. I want to add language switch buttons into the navigation menus.

I created two shortcuts for toggling the language by the flag images in my journal’s homepage navigation menus. I took the shortcuts links from Language Toggle Block at the right-bottom of website. But somehow Language Toggle Block works properly and swithces th languages but in navigation menus links don’t work properly. This is big problem for us because an indeks content manager wants that language switcher links in the navigation menus must work properly. I tried to carry the language toggle into the navigation menus but block plugin’s files don’t work out of the block side nowhere.

My journal’s webpage is http://tujom.org. You can try the language switcher links on the navigation menus with flag images.

Is there any solution for this?

I forgot the website images sorry.

Language Toggle Block At The Right-Bottom of The Website.

2

Hi - your language links in the navigation work correctly for me.

Regards,
Jason

Dear Jason Nugent,

My journal’s language links are working properly in some browsers and some different geographic connections. But they need to work the whole visitors’ different web browsers. In Firefox sometimes the links don’t work. I think that this is a coding problem for browsers. You may read this link:


Maybe there may need a bug for this.

But the language toggle always switch the language page. I added some custom blocks to my journal’s web page and language toggle part is at the right-bottom of the page. The language switcher must be top on the website. I want to carry language toggle top of the website. I couldn’t add what I did the language toggle into the navigation menus or header.

My point is that you can put the language toggle at the top of the page. You just need to drag it up in the journal settings section where you edit the side bar.

But, your language links work for me (and I am using Firefox). Also tested in Chrome and IE.

Cheers,

I can not carry the language toggle block above the custom blocks also above the issue slider. May I replace the language block at the top of the page or near the Search Bar like this?

Is there any idea for this?

@jnugent Yes, we need to know this either: How can we display a working language toggle to the User Menu?

Do we have to develop a plugin for that? Is there a place to hook into?

Hi @twa,

The isn’t any easy way that I know, you can look into Health Sciences or Immersion theme’s code for possibility of implementation.

1 Like

Thanks, @Vitaliy – this is a great starting point!

You can copy the toggle links from the sidebar language toggle and then create new Navigation Menu Items (Settings --> Website --> Navigation Menus --> Add Item) - use “Remote URL” and just copy the links from the language toggler in the sidebar, respectively.

Once you have created three new items (“Language”, “English”, “Turkish”) you can edit the User Navigation Menu to add the language toggler to the top of the page, next to the login.

See for example: http://www.lambdanordica.org/index.php/lambdanordica/index

Best wishes,
Emma

This procedure does only create links to the main page. Is it possible to make toggle links so that the current page changes language?

1 Like

I would like to know that, too.

Overall, it would be great if enabling the language toggler meant, not only that it can be added to the sidebar, but also that it could be added to the nav bar. That is, it would be great if the toggler showed up as a Navigation Menu Item to be added (optionally) either to the primary nav menu or the user nav menu.