I have create a magento 2 product list grid and I need to add a custom button to the grid as shown below

enter image description here

  • do you want to add it after all product list ? – Pawan Jan 25 at 7:58
  • @Pawan yeah .. if we use multipel product grids button should be there – Dev Space Jan 25 at 8:04
  • did you added products using widget ? – Pawan Jan 25 at 8:36
  • @Pawan yes im using widget – Dev Space Jan 25 at 8:50
  • OK, please see my answer and let me know if any issue.. – Pawan Jan 25 at 9:16

It seems you added product using widget, you need to copy below file:




After that you can add a button like:

<div class="discover">
    <a href="#">Discover</a>

After div ending with class block widget block-products-list

You can also check template by template hint at:

Store -> Configuration -> Advanced -> Developer

Change scope to Store view from Default Config

Enable Template Path Hints for Storefront to Yes

Hope above will help!

| improve this answer | |
  • This solutions is working as expected.. Thanks – Dev Space Jan 25 at 10:09
  • welcome...Glad to know :) – Pawan Jan 25 at 10:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.