Hi
How should I link menu elements (using WPML) to certain page section?
/en#sectionname – refreshes the website (but it linkes properly)
Thanks
M
Hi Mariusz!
That would be the way to do it. Just add the ID of the element to the end of your URL. To change the language the page would have to refresh itself.
<a href = "/en/#name">Click me</a>
<a href = "/en#name">Click me</a>
Cheers!
Elliott
Hey!
Are you just trying to get it to scroll down to the events section? In that case you do not need add the language just set the ID as the URL.
<a href = "#name">Click me</a>
Best regards,
Elliott
Hi!
You’ll need to use absolute path to your page then and add the ID to the end.
<a href = "http://andrzejkaralow.pl/en/#name">Upcoming Events</a>
If your trying to have the link change with the current language set then you’ll need to create a menu for each language with WPML. You can do this in Dashboard > Appearance > Menus.
Cheers!
Elliott
Hi Elliot,
Thanks. I changed links in the menu for absolute path for english version.
From the main site view, when I click ‘upcomming events’ element from the menu, the page refresh and I am redirected to a proper section.
I just need to have it without refreshment, just like I have it in polish version: just click and scroll to a certain section without refreshment.
Thank you ;)