Thanks for detaisl
can you please add me staff so i will easy to fix and update code
This is an accepted solution.
Thanks
i have done this can you please check
Thanks for update
can you please check hero section and find your code i will update second button code
Thanks. I see this new code in hero. Is that all you added?
<!-- Second button #2 -->
{%- if section.settings.button_label2 != blank and section.settings.button_link2 != blank -%}
<a href="{{ section.settings.button_link2 }}" class="btn hero__btn-secondary">
{{section.settings.button_label2}}
</a>
{%- endif -%}
<!-- End of Second button #2 -->
I would like to understand what you did. Could you explain the difference between code for primary and secondary button?
<!-- Primary button -->
{%- if section.settings.button_label != blank and section.settings.button_link != blank -%}
{%- capture ariaLabel -%}
{{- section.settings.button_label -}}
{%- if section.settings.button_link.type == 'frontpage_link' -%}
: {{ 'homepage.general.title' | t -}}
{%- elsif section.settings.button_link.type == 'catalog_link' -%}
: {{ 'collections.catalog.title' | t -}}
{%- elsif section.settings.button_link.object.title -%}
: {{ section.settings.button_link.object.title -}}
{%- endif -%}
{%- endcapture -%}
<a href="{{ section.settings.button_link }}"
class="btn hero__btn"
aria-label="{{ ariaLabel }}">
{{- section.settings.button_label | escape -}}
</a>
{%- endif -%}
<!-- End of Primary button -->
Thanks for it
it's only object condition doesn't any effect on
User | Count |
---|---|
818 | |
130 | |
83 | |
78 | |
73 |