Please make sure to update to WPML 4.3.4 before reporting any issue

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 18 replies, has 2 voices.

Last updated by Carlos Rojas 4 months ago.

Assigned support staff: Carlos Rojas.

Author Posts
July 15, 2019 at 11:46 am #4210671

nicholasA-4

Hello Carlos,
the Menus are hardcoded in the header.php and footer.php file like so:

<ul><?php foreach( $languages as $lang ) : //List Languges ?>
                                            <li class="sf-lang <?php echo $lang['active'] ? 'active' : '';?>"><a class="sf-navigation-item" href="<?php echo $lang['url'];?>"> <?php echo strtoupper($lang['code']);?></a></li>
                                        <?php endforeach; //Endforeach ?></ul>

hidden link

July 15, 2019 at 2:26 pm #4212223

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for your message.

It seems -unfortunately- that for now you need custom programming work which is beyond the scope of our support.

At this point I would suggest you consider contacting one of our certified partners from this link: http://wpml.org/documentation/support/wpml-contractors/

Before doing so please have a look also here:
http://wpml.org/documentation/support/wpml-contractors/guidelines-for-people-looking-for-consulting-help/

You will get the custom assistance you need to get on with your project.

Thank you very much for your understanding!
Best regards,
Carlos

July 18, 2019 at 1:24 pm #4239065

nicholasA-4

Hi Carlos,

Thank you for your response but I think you're misunderstanding my issue

I don't have an issue with the menu but I have an issue with the language switcher which my developer has added with icl_get_languages() function

We have 2 Custom Post Types which we have not keep for translation but just showing same content except static string as it is for rest of all languages with hidden link settings

Here is the list of those archive/single pages where we are unable to see the language switcher
hidden link
hidden link

But if you manually change /en/ to /de/ in above URLs then URLs will work and proper translated content will be shown but only language switcher is not visible on these pages and it's single pages

And same code for language switcher is working on other pages, so kindly please help or guide us how can we show language switcher for non-translatable post types?

Thank you very much for your help in advance!

July 18, 2019 at 3:23 pm #4240141

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi,
As I said in my previous message, this is custom coding which falls outside of our scope as a support service.

In this link you will find more information related to the language switchers and our hooks reference list which might help you to achieve your goal:
- https://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/
- https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/
- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

Thank you very much for your understanding!
Best regards,
Carlos