Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #348451

    Hi
    How should I link menu elements (using WPML) to certain page section?

    /en#sectionname – refreshes the website (but it linkes properly)

    Thanks
    M

    #348874

    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

    • This reply was modified 10 years ago by Elliott.
    #348893
    This reply has been marked as private.
    #349146

    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

    • This reply was modified 10 years ago by Elliott.
    #349346
    This reply has been marked as private.
    #349695

    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

    • This reply was modified 10 years ago by Elliott.
    #349939

    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 ;)

    #350327

    Hey!

    It should work but you input the url incorrectly. It should be:

    http://andrzejkaralow.pl/en/#events
    

    Right now, it is:

    http://andrzejkaralow.pl/en#events
    

    The slash is missing.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.