• Resolved janded

    (@janded)


    Hi,

    When I try to add a widget code from Shopstyle Collective (affiliate marketing platform), Gutenberg always fails to save/publish the page.

    Here’s an example of how the code looks:
    <!– COLLECTIVE WIDGET CODE START –>
    <div class=”shopsense-widget” style=”text-align:center” data-options=”%7B%22widgetId%22%3A%225d331cf65d9d7fb8944edcc2%22%2C%22pid%22%3A%22uid3600-37874560-57%22%2C%22url%22%3A%22https%3A%2F%2Fapi.shopstyle.com%2Fapi%2Fv2%22%7D”>
    <script id=’shopsensewidget-script’ src=”//shopsensewidget.shopstyle.com/widget-script.js?cb=1563630590404″></script>
    </div>
    <!– COLLECTIVE WIDGET CODE END –>

    I add this into a HTML block, but I always get the notification that the page can’t be saved, or published.

    This is related to Gutenberg, since I can add the aboce code in the regular (old) editor.

    This is my website: https://www.janded.eu
    I’m using WordPress 5.2.2

    Is there something I’m doing wrong or is it just a bug?
    Hope it will get fixed eventually.

    • This topic was modified 5 years, 4 months ago by janded.
Viewing 1 replies (of 1 total)
  • Plugin Author Jorge Costa

    (@jorgefilipecosta)

    Hi @janded,
    I think the comment marks <!– COLLECTIVE WIDGET CODE START –> and <!– COLLECTIVE WIDGET CODE END –> may be interpreted by the Gutenberg parser as blocks.
    I think if you remove this comment marks everything should work as expected.

    I hope you find my answer useful, feel free to comment if you need additional clarification.

Viewing 1 replies (of 1 total)
  • The topic ‘Gutenberg and Shopstyle Collective Widget Code Not Working’ is closed to new replies.