When Click The On The Text Then The Text Should Copy To The Clipboard

nikz35
Shopify Partner
52 0 18

 

Hi its an offer code page ! link - https://boyodemo.myshopify.com/pages/boyo-deals 
pass : boyodemo
when someone click on the code text then the code should be copied in our clipboard 
liquid code below !

{% for block in section.blocks %}
<div class="grid__item {{ column_size }} js" {{ block.shopify_attributes }}>
{% if block.settings.link != blank %}
<a class="image-bar__link" href="{{ block.settings.link }}">
<div class="image-bar__item box ratio-container lazyload"
data-bgset="{% include 'bgset', image: block.settings.image %}"
data-sizes="auto"
data-parent-fit="cover"
style="background-position: {{ block.settings.alignment }}; background-image: url({{ block.settings.image | img_url: '300x300' }});">
{% elsif block.settings.image != blank %}
<div class="image-bar__item image-bar__item--{{ block.id }} box ratio-container lazyload"
data-bgset="{% include 'bgset', image: block.settings.image %}"
data-sizes="auto"
data-parent-fit="cover"
style="height: 200px;background-position: {{ block.settings.alignment }}; background-image: url({{ block.settings.image | img_url: '300x300' }});">
{% else %}
<div class="image-bar__item">
{% endif %}
<div class="image-bar__content{% if block.settings.cta_label != blank %} image-bar__overlay{% endif %}">
{% if block.settings.image == blank %}
{{ 'image' | placeholder_svg_tag: 'placeholder-svg' }}
{% endif %}

{% if block.settings.cta_label != blank %}
<div class="image-bar__text">
<h5 class="image-bar__caption">{{ block.settings.cta_label | escape }}</h5>
</div>
{% endif %}
</div>
{% if block.settings.link != blank %}
</div> </a>
{% else %}
</div>
{% endif %}
</div>

Replies 3 (3)
Zworthkey
Shopify Partner
5581 640 1498

@nikz35 
Welcome to Shopify Community,
So what are you looking?

Let me, know
thank you

If helpful, please Like and Accept Solution. Hire Us |
if you Want to modify or Customize your theme | Whatsapp | Email us: sales@zworthkey.com
Top Rated Shopify Agency, | We have Over 200+ Happy merchants.
Build Successful Shopify Stores with GemPages
nikz35
Shopify Partner
52 0 18
nikz35
Shopify Partner
52 0 18

Hi ,
thank you very much
Simple page like in the given page ! When the customers click on the image or the text below the image ! Then the text should be copied to your clipboard so that they don't to copy and paste it in the cart page.