Can I add an anchor link to the button?

Can I add an anchor link to the button?

Daniil_P13
Excursionist
31 0 8

Daniil_P13_0-1725895097763.png

Hi, guys

Can I add an anchor link to the button?

https://alpadadoors.com/pages/builders-contractors-1

 

DP
Replies 3 (3)

Sangeetanahar
Explorer
541 36 69

hello @Daniil_P13 

its not possible.

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -sangeetarahuldhiman@gmail.com - Skype: live:sangeetarahuldhiman -Whatsapp: +917009811712
Checkout Some Free Sections Here

namphan
Shopify Partner
1329 164 199

Hi @Daniil_P13,

Please change the button link to '#shopify-block-hulk_form_builder_form_block_8Rd3Ph' it will work fine. Link:

#shopify-block-hulk_form_builder_form_block_8Rd3Ph
Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com

BSSCommerce-B2B
Shopify Partner
1708 511 571

@Daniil_P13 , 

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid.

Step 3. Add this code before </body>

<script>
  document.addEventListener('DOMContentLoaded', function() {
    document.querySelector('#shopify-section-template--16683642355912__image_with_text_gqPmqy .image-with-text a')
      .addEventListener('click', function(event) {
        event.preventDefault();
        const targetElement = document.getElementById('shopify-block-hulk_form_builder_form_block_8Rd3Ph');
        targetElement.scrollIntoView({ behavior: 'smooth' });
      });
  });
</script>

If it helps you, please like and mark it as the solution.

Best Regards 😍

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now