• Resolved haris013

    (@haris013)


    i have an one-page site theme and i want bilingual translation. I have setup translatepress with english (native) and greek ( i have manually translate all the content). When i am browsing with the english translation, everything works fine, i can use the menu links and automatically scroll at the correct page section. Now if i am on greek translation, the menu links just doesn’t work, i click on them but nothing happens. Can someone help me debug this issue?

    thanks in advance

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Dragos

    (@dragosvrejiu)

    Hello,

    The greek version of the page tries to redirect you to english sections.
    For example,clicking on the greek version of features tries taking you to:
    https://demos.famethemes.com/onepress/#features

    Make sure links are full URL’s in your menu in WordPress -> Appearance -> Menus -> Edit Menu.
    They should not be relative or absolute (for example if you have a custom link /blog/ replace it with https://example.com/blog/)

    Also,make sure you have enabled theForce language in custom links option from TP Settings.

    Let me know how this goes.

    With the best regards,

    Thread Starter haris013

    (@haris013)

    Well i did some debugging using the inspector tool from the browser. I can’t understand how the menu works, i found out that from english to greek changes the tag name. for example in english the menu features section is like that https://demos.famethemes.com/onepress/#features in greek version, the inspector tool shows that the features section is #χαρακτηριστικ?

    I will upload some screenshots from menu and TP to help you see the situation. I tried to replace the hashtag part of the link but still didn’t work. The Force language in custom links is enabled.

    menu screenshot

    TranslatePress screenshot

    edit: it looks that my homepage doesn’t exist in greek version. i don’t know what is happening

    • This reply was modified 4 years, 11 months ago by haris013.
    • This reply was modified 4 years, 11 months ago by haris013.
    Dragos

    (@dragosvrejiu)

    Hello,

    Can you please visit TranslatePress -> Settings -> Advanced

    Then, enable these features 1 by 1 in this order and try to see if it makes a difference. Also please disable or clear the cache if you have any.

    1. Fix missing dynamic content
    2. Disable dynamic translation
    3. Fix spaces between HTML attributes
    4. Fix broken HTML

    Let me know how it goes.

    Best regards,

    Thread Starter haris013

    (@haris013)

    i tried these options one by one but still nothing fixed the issue. The fix broken html option made things worse.

    Thread Starter haris013

    (@haris013)

    i found out that the plugin automatically translates the id sections when changing language. How do i stop that? it shouldn’t change the html ids. I tried the greek translation with english id tags and the menu works fine but i did that manually with the inspector tool of my browser. How do i stop the plugin from translating id?

    for example the about section of site is <section id="about" class="section-about section-padding onepage-section" data-no-translation-id="">

    when in greek it is <section id="σχετικ?" class="section-about section-padding onepage-section" data-no-translation-id="">

    this is wrong, it should be again id=”about”

    • This reply was modified 4 years, 11 months ago by haris013.
    Thread Starter haris013

    (@haris013)

    any update on how i can disable automatic “code” translation?

    Dragos

    (@dragosvrejiu)

    Hi,

    It seems that you have got it working now.

    Let me know if there is anything else.

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Broken one page menu links when using translation’ is closed to new replies.