• Resolved joostdehaas

    (@joostdehaas)


    Hello there,

    I have a plugin called ‘Woo Quick View’, that shows WooCommerce products in an Ajax popup.

    It’s great, and it works fine on my original (Dutch) site, but on the English version of the page (even without translating anything), clicking the images does nothing (or even freezes the page).

    Does anyone have any idea how this is possible? What could be going wrong?

    I didn’t think Translatepress did anything to a page other than front-end translation, but it appears the functionality is broken even without translating any of the strings…

    Thanks a lot for your help!

    P.S.
    – The way it should work: joostdehaas.nl/shop
    – Where it doesn’t work: joostdehaas.nl/english/shop

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    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. Disable them back if it makes no difference. Also please disable or clear the cache if you have any.

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

    Thread Starter joostdehaas

    (@joostdehaas)

    Hey Alex, thanks a lot for your answer!

    Unfortunately none of this made any difference…
    I tried all of them, both simultaneously and separate.
    In some instances the whole site stopped responding, but none of it fixed the issue.

    Is there any other thing you would recommend?
    Thanks a lot!

    Joost

    Thread Starter joostdehaas

    (@joostdehaas)

    Hi Alex!

    Is there something else you could recommend?

    Or, if not: Is there a way to turn off the English version of that single page?

    Thanks a lot,

    Joost

    Plugin Support Alex

    (@alexcozmoslabs)

    You can try to exclude the selector/selectors of that part/images using the exclude functions from TP Settings –> Advanced tab.
    Also, you can exclude a page entirely from translation using the Do not translate certain paths feature from the same Advanced tab.

    Thread Starter joostdehaas

    (@joostdehaas)

    Thanks for your answer.

    I don’t really know how to do any of that though…
    Could you please help me a little more with this?

    I don’t even really know what a selector is.
    I tried the Chrome inspector to click on the image that makes it crash, to see if I could find a ‘selector’, But that html looks complex. I tried adding some of those things into the exclusion fields, but without success… I probably copied the wrong text.

    What am I looking for? Something that has ‘class=’ written in front of it?
    And should it be notated with a ‘#’ in front of it? I really don’t know where to begin.

    Maybe you could have a look? And find the string or selector that needs to be exluded? That would be great.

    So, again: clicking images on http://www.joostdehaas.nl/shop works fine!
    But, clicking images on http://www.joostdehaas.nl/english/shop crashes the whole page.

    So, which ‘selector’ should I exclude…?
    Hopefully you can help, because this is beyond my knowledge…

    Thanks again,

    Joost

    Thread Starter joostdehaas

    (@joostdehaas)

    Just to finish this thread: The problem is fixed.

    The creator of the AJAX modal plugin updated his plugin after I expressed my problem. That solved it.

    So, thanks a lot for your help, but it appears the problem had nothing to do with TranslatePress after all.

    Sorry for the trouble.

    Plugin Support Alex

    (@alexcozmoslabs)

    Thank you for your letting us know what was the cause.

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

The topic ‘Ajax Modal doesn’t work on translated page’ is closed to new replies.