• Resolved furnituredesignaj

    (@furnituredesignaj)


    Hello,

    I translated my website with Weglot and when I did, pictures that appear on 2 pages do not show in the English and Spanish version (french being original). I contacted the support Weglot which told me there was a problem with the HTML because of Jetpack. Here is their explanation since I am new to web development and do not understand a single thing in their message. I tried deleting the pages and pictures from the source but when I try again it does the same thing again. Thank you in advance for your reply.

    WEGLOT SUPPORT : I have checked how the HTML was added to the page in your WordPress admin, and it seems we cannot access the duplicated code.

    So on the page we have a code like this :

    <figure>
    <img decoding=”async” <u>data-attachment-id=”134″</u> data-permalink=”…” data-orig-file=”…” data-orig-size=”…” data-comments-opened=”1″ data-image-meta=”…” data-image-caption=”…” data-medium-file=”…” data-large-file=”…” tabindex=”0″ role=”button” data-attachment-id=”134″ data-permalink=”…” data-orig-file=”…” data-orig-size=”…” data-comments-opened=”1″ data-image-meta=”…” data-image-title=”…” data-image-description=”…” data-image-caption=”…” data-medium-file=”…” tabindex=”0″ role=”button” srcset=”…” alt=”…” data-height=”…” data-id=”134″ data-link=”…” data-url=”…” data-width=”…” src=”…” data-amp-layout=”…” tabindex=”0″ role=”button” aria-label=”…”>
    </figure>
    (See Picture_1)

    All the code from data-attachment-id=”134″ to role”button” is duplicated.

    It seems our parser breaks on the second data-attachment-id because in the page created by Weglot it isn’t repeated but its value “134” is, and it kinda stops here.
    (See Picture_2)

    But here is the code we can access in your admin :
    <figure>
    <img alt=”…” data-height=”…” data-id=”134″ data-link=”…” data-url=”…” data-width=”…” src=”…” data-amp-layout=”…” tabindex=”0″ role=”button” aria-label=”…”/>
    </figure>
    (See Picture_3)

    You can see we can only access the code from the alt attribute, but not what’s before in in the source code.
    The rest of the code seems to be added by your extension Jetpack.

    I searched if this was a known issue, but did not find any ressource online of this exact behaviour.

    Do you think you can get in touch with Jetpack Support to see if they can access that code and fix the duplication ?

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