• I was working with a media team and they have already translated the mentioned website to several ones. They are on the server, I can access cPanel, they have are in subfolders.


    So When you open the website, you can see a Language Selector Dropdown Menu placed in the topbar.

    Recently I want to change the theme&design of the site, but I couldn’t figure out how to build a custom language dropdown menu like the that’s on the site.

    Of course I can open on Chrome and copy the code but is there a plugin which can create such menu and accepts custom links without subscription?

    I don’t want to pay annually for a translation plug-in. We are already paying for some kind of AI service and can access translation services.


    So is there an easy way to do this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    The solution depends on the theme you choose. If the theme has a top bar widget area, you could simply insert a navigation menu widget there, and define a menu comprised of custom links to the various languages to go with it.

    If your chosen theme has a similar nav menu and you want the lang selector to appear after it, you could use the “wp_nav_menu” filter to insert the desired HTML into the normal menu output.

    If neither of those are viable options, you could create a child theme and directly modify a copy of the appropriate template to include the lang selector.

    Thread Starter mustafaaydinol

    (@mustafaaydinol)

    Well this was a little complicated to understand. I found “wp_nav_menu” in header.php file. Also asked Claude and ChatGPT how to modify the CSS and Bootstrap.

    This is an interesting issue. I thought that there would be a plugin to build simple dropdown menus but it turned out to be quite difficult.

    Thanks for the help though. If you have any knowledge of such plugins please update.

    Regards

    Moderator bcworkz

    (@bcworkz)

    The only menu plugins I know of are of the “mega menu” kind, which isn’t really what you’re after.

    Your current language selector is separate from the nav menu but adjacent to it. One thing you could do instead of what I suggested earlier is to incorporate the language links into your usual nav menu scheme. It would be feasible to add some custom CSS to the language menu items so they look like they are separate from the nav menu even though the HTML belongs to the overall nav menu element.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Language Selection’ is closed to new replies.