Add Link to Rich Text "Heading" (not body text)

Add Link to Rich Text "Heading" (not body text)

AndrewVV
Visitor
3 0 1

Hello,

 

The rich text block has the built in option to add links to the body text, however it does not have this option for the "heading". As the heading is much more noticeable and therefore easier for customers to see, I would like to use the heading as the main text and simply add a link to it - however this is not possible. Is there any way to write the code to allow for this? 

 

 

Screenshot 2023-02-14 at 12.28.28.png

The code for this page section looks like this:

 

"3506663d-7f8d-4886-a57d-9d1f6d129919": {
"type": "rich-text",
"blocks": {
"template--15123857047625__3506663d-7f8d-4886-a57d-9d1f6d129919-1675887578d1a62ed8-1": {
"type": "text",
"settings": {
"text": "<p><a href=\"\/pages\/twin-goddess-coffee-collection\" target=\"_blank\" title=\"Twin Goddess Coffee Collection\">Shop All<em><strong> <\/strong><\/em><\/a><em><strong>⠀⠀⠀⠀⠀<\/strong><\/em><a href=\"\/products\/coffee-tasting-artisan-workshop\" target=\"_blank\" title=\"Coffee Tasting & Artisan Workshop\">Book Now<\/a><\/p>"
}
},
"f8b93afd-d5c6-4c2e-81e8-53002a079147": {
"type": "heading",
"settings": {
"heading": "Shop All ⠀⠀⠀⠀⠀Book Now",
"heading_size": "h2"
}
}
},
"block_order": [
"template--15123857047625__3506663d-7f8d-4886-a57d-9d1f6d129919-1675887578d1a62ed8-1",
"f8b93afd-d5c6-4c2e-81e8-53002a079147"
],
"settings": {
"color_scheme": "accent-2",
"full_width": false,
"padding_top": 16,
"padding_bottom": 16
}
},

 

Reply 1 (1)

hellocc
Excursionist
50 0 7

Hi, did you find a solution for this? Thanks.