This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants to place the English language switcher below the search option in the 3rd column of the header on every page of their Divi-themed website.
Solution:
We recommend adding the language switcher to a specific location by using a shortcode. Here are the steps to follow: 1. Enable a custom language switcher and customize it according to your needs. 2. Place the shortcode
Tell us what you are trying to do?
I want to place the English language indication below the search option, in the 3rd column.
This is the header that appears on every page. Is there a simple code for this?
Site made up in Divi
Is there any documentation that you are following?
Welcome to the WPML support forum.
If you want to add the language switcher in a specific location, you can achieve that by using a shortcode and place it in a Divi module.
Good day,
I placed the '<?php do_action('icl_navigation_menu'); ?>' version in the heading on the homepage as intended.
No result. Apparently I am doing something wrong.
Can you please give me the correct code? And do I have to place this on every page or will this then continue in every header?
That PHP code must be used in the PHP templates of your current theme. If you want to place it inside a Divi template you should use the shortcode version as instructed in my previous answer: [wpml_language_selector_widget]
If you still have issues placing that shortcode, please let me know and I'll activate a private field where you will be able to share admin credentials for me. (Don't share them here on the public forum).
I'm sorry, but I can't figure it out!
Is it possible to do this with css too?
I understand, after some searching that it can only be done in php.
But with the expectation of eventually going to DIVI 5 anyway, I don't feel like doing a php modification.
I'm not that technical, sorry.
Sorry if I was unclear, but you only need to use one or the other. You can simply use the shortcode in a divi module (no need for the PHP code in that case).
I made a quick video, I hope it will be helpful: hidden link
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.