I would like to add a link for SMS: for the url of the button. I am using Combine theme.
Website: https://c70bz1-v1.myshopify.com/pages/gift-certificates
Password: windowtint
A user seeks to add an SMS link (sms:+12345678910) to a button in the Rich Text Widget using Shopify’s Combine theme.
Current Status:
Proposed Solution:
sms:+12345678910&body=body text hereOngoing Discussion:
I would like to add a link for SMS: for the url of the button. I am using Combine theme.
Website: https://c70bz1-v1.myshopify.com/pages/gift-certificates
Password: windowtint
Hi @dtffox ,
Please send me the code of rich-text.liquid file, I will help you add an option for it
{{ ‘section-rich-text.css’ | asset_url | stylesheet_tag }}
{%- if section.settings.is_fullwidth -%}
{% style %}
@media screen and (max-width: {{ settings.theme_max_width }}px) {
#shopify-section-{{ section.id }} .rich-text__container–image-right .rich-text__text {
padding-inline-start: var(–gutter-container) !important;
}
}
@media screen and (max-width: {{ settings.theme_max_width }}px) {
#shopify-section-{{ section.id }} .rich-text__container–image-left .rich-text__text {
padding-inline-end: var(–gutter-container) !important;
}
}
{% endstyle %}
{%- endif -%}
{%- liquid
if section.index == 1
assign preload = true
else
assign preload = false
endif
-%}
{%- unless section.settings.video != blank -%}
{%- liquid
unless section.settings.image == blank
render ‘lazy-image’, image: section.settings.image, type: ‘’, alt: section.settings.title, image_alignment: true, id: section.id, class: ‘lazy-image–to-reveal’, preload: preload
else
echo ‘image’ | placeholder_svg_tag
endunless
-%}
{%- else -%}
{{ ‘component-video-background.css’ | asset_url | stylesheet_tag }}
@media screen and (max-width: 767px) { #element-{{ section.id }} .rich-text__image { height: 0; padding-top: {{ 100 | divided_by: section.settings.video.aspect_ratio }}%; } }{%- unless section.settings.image == blank -%}
{%- endunless -%}
{%- for block in section.blocks -%}
{%- case block.type %}
{%- when ‘custom_liquid’ -%}
{%- when ‘title’ -%}
{%- when ‘text’ -%}
{%- when ‘button’ -%}
{%- endcase %}
{%- endfor -%}
{%- render ‘custom-colors’, id: section.id, text: section.settings.color_text_main, background: section.settings.color_background_main, borders: section.settings.color_borders_main, hide_borders: section.settings.color_hide_borders, border_radius: section.settings.border_radius -%}
{% schema %}
{
“name”: “t:sections.rich-text.name”,
“class”: “can-be-fullwidth merged-section supports-absolute-header”,
“max_blocks”: 9,
“settings”: [
{
“id”: “image”,
“type”: “image_picker”,
“label”: “t:sections.gallery.blocks.image.settings.image.label”
},
{
“type”: “video”,
“id”: “video”,
“label”: “t:sections.local-extra-words.sections.media-with-text-overlay.blocks.video.label”,
“info”: “t:sections.local-extra-words.sections.media-with-text-overlay.blocks.video.info”
},
{
“type”: “checkbox”,
“id”: “video_controls”,
“label”: “t:video_controls”,
“default”: false
},
{
“type”: “select”,
“id”: “image_position”,
“label”: “t:sections.local-extra-words.sections.rich-text.settings.image_position.label”,
“options”: [
{
“value”: “left”,
“label”: “t:sections.local-extra-words.sections.rich-text.settings.image_position.option__1”
},
{
“value”: “top”,
“label”: “t:sections.local-extra-words.sections.rich-text.settings.image_position.option__2”
},
{
“value”: “right”,
“label”: “t:sections.local-extra-words.sections.rich-text.settings.image_position.option__3”
},
{
“value”: “top no-image”,
“label”: “t:late_edits.rich-text.image_position.no_image.label”,
“group”: “t:late_edits.rich-text.image_position.no_image.group”
}
],
“default”: “right”
},
{
“type”: “select”,
“id”: “height”,
“label”: “t:sections.local-extra-words.sections.rich-text.settings.height.label”,
“info”: “t:sections.local-extra-words.sections.rich-text.settings.height.info”,
“options”: [
{
“value”: “small”,
“label”: “t:sections.image-with-text.settings.image_height.options__1.label”
},
{
“value”: “regular”,
“label”: “t:sections.image-with-text.settings.image_height.options__2.label”
},
{
“value”: “large”,
“label”: “t:sections.image-with-text.settings.image_height.options__3.label”
}
],
“default”: “regular”
},
{
“type”: “checkbox”,
“id”: “image_crop”,
“label”: “t:sections.local-extra-words.sections.rich-text.settings.crop.label”,
“info”: “t:sections.local-extra-words.sections.rich-text.settings.crop.info”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “is_fullwidth”,
“label”: “t:sections.local-extra-words.sections.rich-text.settings.fullwidth.label”,
“default”: false,
“info”: “t:sections.local-extra-words.sections.rich-text.settings.fullwidth.info”
},
{
“type”: “select”,
“id”: “text_alignment”,
“label”: “t:sections.image-with-text.settings.text_alignment.label”,
“options”: [
{
“value”: “horizontal-left”,
“label”: “t:sections.rich-text.settings.text_alignment.options__1.label”
},
{
“value”: “horizontal-center”,
“label”: “t:sections.rich-text.settings.text_alignment.options__2.label”
},
{
“value”: “horizontal-right”,
“label”: “t:sections.rich-text.settings.text_alignment.options__3.label”
}
],
“default”: “horizontal-center”
},
{
“type”: “range”,
“id”: “spacing”,
“label”: “t:sections.bundle-extra-words.settings_schema.labels.spacing”,
“min”: -12,
“max”: 60,
“step”: 1,
“default”: 24,
“unit”: “px”
},
{
“type”: “header”,
“content”: “t:sections.bundle-extra-words.settings_schema.card.settings.design.header”
},
{
“type”: “color”,
“id”: “color_background_main”,
“label”: “t:sections.split-extra-words.settings_schema.colors.settings.background”,
“default”: “rgba(0,0,0,0)”
},
{
“type”: “color”,
“id”: “color_text_main”,
“label”: “t:sections.split-extra-words.settings_schema.colors.settings.text”,
“default”: “rgba(0,0,0,0)”
},
{
“type”: “color”,
“id”: “color_borders_main”,
“label”: “t:sections.local-extra-words.settings_schema.colors.settings.borders”,
“default”: “rgba(0,0,0,0)”
},
{
“type”: “range”,
“id”: “border_radius”,
“label”: “t:sections.bundle-extra-words.settings_schema.buttons.settings.border_radius”,
“min”: 0,
“max”: 30,
“step”: 1,
“unit”: “px”,
“default”: 0
},
{
“type”: “checkbox”,
“id”: “color_hide_borders”,
“label”: “t:sections.local-extra-words.settings_schema.colors.settings.hide_border”,
“default”: false
},
{
“type”: “header”,
“content”: “t:sections.bundle-extra-words.sections.headings.gutter.label”
},
{
“type”: “checkbox”,
“id”: “gutter_decrease”,
“label”: “t:sections.bundle-extra-words.sections.headings.gutter.content”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “remove_margin”,
“label”: “t:sections.local-extra-words.sections.rich-text.settings.remove_margin.label”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “remove_bottom_margin”,
“label”: “t:sections.local-extra-words.settings_schema.layout.sections.remove_bottom_margin”,
“default”: false
}
],
“blocks”: [
{
“type”: “custom_liquid”,
“name”: “t:sections.refactor_words.custom_code.name”,
“settings”: [
{
“type”: “liquid”,
“id”: “custom_liquid”,
“label”: “t:sections.custom-liquid.settings.custom_liquid.label”
}
]
},
{
“type”: “title”,
“name”: “t:sections.rich-text.blocks.heading.name”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “t:sections.rich-text.blocks.heading.settings.heading.label”,
“default”: “Talk about your brand”
},
{
“type”: “select”,
“id”: “title_size”,
“label”: “t:sections.rich-text.blocks.heading.settings.heading_size.label”,
“options”: [
{
“value”: “heading-size–small”,
“label”: “t:sections.rich-text.blocks.heading.settings.heading_size.options__1.label”
},
{
“value”: “heading-size–regular”,
“label”: “t:sections.rich-text.blocks.heading.settings.heading_size.options__2.label”
},
{
“value”: “heading-size–large”,
“label”: “t:sections.rich-text.blocks.heading.settings.heading_size.options__3.label”
}
],
“default”: “heading-size–regular”
},
{
“type”: “header”,
“content”: “t:sections.refactor_words.seo.name”
},
{
“type”: “select”,
“id”: “seo_h_tag”,
“label”: “t:sections.refactor_words.seo.label”,
“info”: “t:sections.refactor_words.seo.info”,
“options”: [
{
“value”: “h1”,
“label”: “H1”
},
{
“value”: “h2”,
“label”: “H2”
},
{
“value”: “h3”,
“label”: “H3”
},
{
“value”: “h4”,
“label”: “H4”
},
{
“value”: “span”,
“label”: “span”
}
],
“default”: “h2”
}
]
},
{
“type”: “text”,
“name”: “t:sections.rich-text.blocks.text.name”,
“settings”: [
{
“type”: “richtext”,
“id”: “text”,
“label”: “t:sections.rich-text.blocks.text.settings.text.label”,
“default”: “
Use this text to share information about your brand with your customers. Describe a product, share announcements or welcome customers to your store.
”Hi @dtffox ,
Please go to Customize > Section > Button link and add text:
sms:+12345678910&body= body text here
Can you elaborate a little on what and where the “Customize > Section > Button” is please?
Hi @dtffox ,
It’s in the Customize section, or can I send you a collaborator invite? it will help me check everything