Debut theme: Two rounded buttons on hero/homepage

Solved
Shopify Partner
12312 1501 4459

@Mariano7 

Thanks for detaisl 

can you please add me staff so i will easy to fix and update code 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Excursionist
14 0 4

@KetanKumar okay, here you go

Screenshot 2020-11-22 at 21.53.19.png

Shopify Partner
12312 1501 4459

This is an accepted solution.

@Mariano7 

Thanks 

i have done this can you please check

KetanKumar_0-1606105227905.png

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Excursionist
14 0 4

@KetanKumar Yes! How did you do that? What trick solved it? Please, if you could elaborate on that.

Shopify Partner
12312 1501 4459

@Mariano7 

Thanks for update 

can you please check hero section and find your code i will update second button code

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Excursionist
14 0 4

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 -->

 

0 Likes
Shopify Partner
12312 1501 4459

@Mariano7 

Thanks for it 

it's only object condition doesn't any effect on 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes