I am looking to modify my Product Card design. Currently, there is a hyperlink named Buy
at the end of the card that users can click on. However, I want to make the entire card clickable with another hyperlink so users do not have to specifically click on the Buy link.
This is the code for the current card layout:
<div class="item">
<div class="card border-0 position-relative">
<div class="">
<img src="" class="card-img-top" alt="">
</div>
<div class="stars position-absolute">
<form id="starRate" action="" data-id="">
<label class="star star-5 storeRate"></label>
<label class="star star-4 storeRate"></label>
<label class="star star-3 storeRate"></label>
<label class="star star-2 storeRate"></label>
<label class="star star-1 storeRate"></label>
</form>
</div>
<div class="card-body text-center">
<h5 class="card-title">
Title
</h5>
<div class="price">
<p>{{ digits2persian(number_format(($newest->prd_price))) }} Dollar</p>
<p>{{ digits2persian(number_format(($newest->prd_sale_price))) }} Dollar</p>
</div>
<a href="" class="btn bg-Gray-shop btn-Hover">Buy</a>
</div>
</div>
I am seeking a way to make the entire card clickable without altering the overall style of the cards. Any suggestions on how to achieve this?