Solved

How to add a custom button on homepage - dawn theme

Sato71
Tourist
18 0 3

Hello, I'm trying to add a custom button under my featured collection, I want it to say "All Products" and it needs to link to my "All Products" collection, is there a way to do that? (Dawn theme) My store is kennasatodesigns.com

 

Thanks!

button.PNG

 

Accepted Solution (1)

AliReviews
Shopify Partner
773 90 356

This is an accepted solution.

Hello @Sato71 ,

 

You can try to follow these steps:

  • Go to Online Store -> Themes -> Actions -> Edit code
  • Go to Sections -> featured-collection.liquid file or something name similar to this
  • Find the section of the code where your featured collection is displayed.
  • Add the following HTML code to create the custom button:
<a href="/collections/all" class="custom-button">All Products</a>

Go to Assets folder -> base.css file -> add the following code at the bottom of page

.custom-button {
  display: block;
  width: 200px; /* Adjust the width as needed */
  height: 40px; /* Adjust the height as needed */
  background-color: #000000; /* Replace with your desired background color */
  color: #ffffff; /* Replace with your desired text color */
  text-align: center;
  line-height: 40px; /* Adjust the line-height to vertically center the text */
  text-decoration: none;
  margin: 20px auto; /* Adjust the margin as needed */
}

Save changes. 

 

Hope this can help. Let us know if you need any further support.

Ali Reviews team.

- Was my answer helpful? Please hit Like or Mark it as solution!
- Ali Reviews - The must-have Shopify app that empowers you to effortlessly collect, display, and manage product reviews.
- Start your FREE trial today!

View solution in original post

Replies 4 (4)

PageFly-Henry
Shopify Partner
1168 332 281

Hi @Sato71 ,

 

This is Henry at PageFly - Shopify Advanced Page Builder app.

 

You can try this code by following these steps:

Go to Online store => themes => Customiz => add section => custom liquid and add this code on custom liquid

 

<a href="your_button_link" class="custom-button">Button Text</a>

 

PageFlyHenry_0-1685412264935.png

 

Hope this answer helps.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

AliReviews
Shopify Partner
773 90 356

This is an accepted solution.

Hello @Sato71 ,

 

You can try to follow these steps:

  • Go to Online Store -> Themes -> Actions -> Edit code
  • Go to Sections -> featured-collection.liquid file or something name similar to this
  • Find the section of the code where your featured collection is displayed.
  • Add the following HTML code to create the custom button:
<a href="/collections/all" class="custom-button">All Products</a>

Go to Assets folder -> base.css file -> add the following code at the bottom of page

.custom-button {
  display: block;
  width: 200px; /* Adjust the width as needed */
  height: 40px; /* Adjust the height as needed */
  background-color: #000000; /* Replace with your desired background color */
  color: #ffffff; /* Replace with your desired text color */
  text-align: center;
  line-height: 40px; /* Adjust the line-height to vertically center the text */
  text-decoration: none;
  margin: 20px auto; /* Adjust the margin as needed */
}

Save changes. 

 

Hope this can help. Let us know if you need any further support.

Ali Reviews team.

- Was my answer helpful? Please hit Like or Mark it as solution!
- Ali Reviews - The must-have Shopify app that empowers you to effortlessly collect, display, and manage product reviews.
- Start your FREE trial today!
Sato71
Tourist
18 0 3

That worked, thank you!

Omoobakhay
Visitor
1 0 0

Please I need your help on this.. I want to add a button to this area marked on the image attached below. and make the button looks like the second button on the reference image as well... on my website.. i want the buttons to look similar to this second images attached to the request.. Thank you.. 

Screen Shot 2024-04-17 at 8.11.05 AM.png       Screen Shot 2024-04-17 at 8.14.29 AM.png