How can I add links to the Logos in the Logo Section?
Hi @RCSRMC
What theme are you using? You would need to modify the section’s schema to be able to add links for each block.
Do you have Liquid programming experience for the above?
I am using a theme customized from the Venture theme. I have a fair amount of knowledge with editing the theme files if I am told where to go. Otherwise, is there an easy way using sections already in the theme?
- Find the liquid file in the Sections folder that control the logo’s display
- In the schema at the end of the file, look for the block settings and add a url setting per block
- Once this is added, find the for loop in the same file that loads blocks and use the url block setting ID to get the URL
- Add the link setting as an href under every logo block
Without deeper view of the code this is the general approach to the solution.
Should that help answer your query, we always appreciate liking & marking an as answer to let the community find quality solutions faster. Thanks!
I sent you a PM.
The solution would be to add the following in the list section under the Schema Block Settings:
{
"type": "url",
"id": "link",
"label": {
"cs": "Odkaz",
"da": "Link",
"de": "Link",
"en": "Link",
"es": "Enlace",
"fi": "Linkki",
"fr": "Lien",
"it": "Link",
"ja": "リンク",
"ko": "링크",
"nb": "Kobling",
"nl": "Link",
"pl": "Link",
"pt-BR": "Link",
"pt-PT": "Ligação",
"sv": "Länk",
"th": "ลิงก์",
"tr": "Bağlantı",
"vi": "Liên kết",
"zh-CN": "链接",
"zh-TW": "連結"
}
}
Then adding the following code just before the div related to the image:
{% if block.settings.link %}
{%endif%}
Then capping it off under:
{% if block.settings.link %}
{%endif%}
That did it
Cheers @RCSRMC !
That did exactly what we needed it to do! Thank you!!
