• amaris astrid

    (@amaris-astrid)


    Hi there

    I’m building a page using WP Page builder into our WPLMS theme. Currently attempting to embed a link into the content of a page column.

    Content is a shopify buy button HTML code. Button should show a product image and link directly to the shopify cart.

    When I copy and paste the code. The link image and button does not show rather all of the code turns up onto the web page itself.

    The same has happened with attempted video linking for youtube or vimeo.
    do I require addtional code? or some other solution?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Make sure you’re pasting embed code into “Text” mode, not “Visual”. That might be your problem. Keep in mind, WordPress editor does strip out certain scripts for security. So if it breaks, that might be a problem and you might need a HTML snippet plugin. But try Text mode first.

    Thread Starter amaris astrid

    (@amaris-astrid)

    Okay that could be it I did toy around with text vs visual..I’ll try again.

    Thread Starter amaris astrid

    (@amaris-astrid)

    Code pasted into “text” automatically shows in “visual”. Once deleted in Visual it automatically deletes from Text. If pasted into Visual only the edit does not update at all.

    kmessinger

    (@kmessinger)

    If just a small amount of code post here. Otherwise post on http://pastebin.com/ and post the link here.

    Thread Starter amaris astrid

    (@amaris-astrid)

    <div data-button_background_color=”7db461″ data-button_text_color=”ffffff” data-buy_button_text=”Buy now” data-display_size=”compact” data-embed_type=”product” data-has_image=”true” data-product_handle=”florid” data-redirect_to=”checkout” data-shop=”fineart-makeup.myshopify.com”></div>
    <script type=”text/javascript”>
    document.getElementById(‘ShopifyEmbedScript’) || document.write(‘<script type=”text/javascript” src=”https://widgets.shopifyapps.com/assets/widgets/embed/client.js&#8221; id=”ShopifyEmbedScript”><\/script>’);
    </script>
    <noscript>Buy Florid Gloss</noscript>

    thanks

    I’m having the same issue. did you ever get it resolved? Please share the solution if you did! Thanks.

    Hello,

    please paste your code to wordpress editor in text mode. if you still have issue please use Embed Code https://wordpress.org/plugins/simple-embed-code/ wordpress plugin. Create code and insert in your wordpress editor. for detailed information and plugin setting please read here..
    http://techieficates.com/embed-code-in-posts-or-pages-in-wordpress/

    Thanks

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

The topic ‘Page shows Script when embeding links’ is closed to new replies.