• Resolved haris013

    (@haris013)


    I have a problem, somehow the plugin automatically translates html ids and that is causing many problems with my site. For example when in English the following code is #features.section-features.section-padding.section-meta.onepage-section.

    When i change the language the same code becomes #χαρακτηριστικ?.section-features.section-padding.section-meta.onepage-section

    any suggest to the following problem?

    • This topic was modified 5 years, 3 months ago by haris013.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Dragos

    (@dragosvrejiu)

    Hello,

    I was able to replicate your issue on my local machine and will get back to you tommorow with an answer.

    Thank you for understanding.

    Best regards,

    Dragos

    (@dragosvrejiu)

    Hi,

    It seems that you have got it working now.

    Let me know if there is anything else.

    Best regards,

    Thread Starter haris013

    (@haris013)

    actually i created a js script that changes the id’s again in english, but this is not a good practice of fixing the problem. If you can find the root of the problem i will be glad! also the navigation bullets at the right of the screen is not working in translated page. any tips for that? thanks!

    Dragos

    (@dragosvrejiu)

    Hello,

    Sorry for the late reply.

    OnePress seems to be translating the section id , you can find that in section-services.php :$id = get_theme_mod( ‘onepress_services_id’, esc_html__(‘services’, ‘onepress’) );

    As a workaround , you can use Loco Translate to translate the section id and also go to Settings->TranslatePress->Advanced Settings->Exclude Gettext Strings and add “features”(or any section) + domain “onepress”.

    Best regards,

    Hey guys… I’m having the same issue. How can I fix that? I didn’t understand how to do.

    I have my website and when I change the language, the link changes too. I’m from Brazil and my main language is Portuguese

    So, if my website link is: https://www.abcd.com
    When I click to translate, it changes to: https://www.abcd.com/en

    So, my ancor links don’t work on the website english version (my page is one page too).

    How can I fix that?

    I don’t know how, but I have only one MENU LINK working, but the rest aren’t

    • This reply was modified 4 years, 9 months ago by thiagoab.

    Guys, with a lot of work and patience I could make it work.

    I had to create a new menu over and over with the links until the English version could be read the link without modifications

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘TP automatically translates html id tags’ is closed to new replies.