Hello everyone,
Need your help to add multiple buttons on product card, does some one know how to do that?
like in the above photo need to add two more buttons in the red marked areas. if some knows easy way to do that please do let me know. Appreciate your help.
Thank you!
if anyone knows appreciate your help on this.
One option would be to create additional buttons just below the product card with the Ghost editor, and then write some javascript (or jQuery would be easier) to move the added buttons into the card.
Hi Cathy,
Thank you so much for you reply, it would be great if you can share the Jquery if you know since my knowledge in that very low.
Thank you!
If anyone here knows how to add that additional buttons function to the product card please do let me know how to do that, what code should i inject for this and how can i get this done? really appreciate your help.
Thank you!
Sorry for not responding sooner. I’ve been busy with paid work. You’d need to find the buttons and the product card, and then you’d need to insert the buttons into the product card itself. I don’t have code that does exactly this, although I’ve written code that does similar things for clients in the past. For example, here’s a bit of code that takes adjacent buttons and puts them into the same div, so that they can be on a row together (with appropriate styling of .button-group):
<script>
const e = '.kg-button-card';
$(e).not(e + '+' + e).each(function () {
$(this).nextUntil(':not(' + e + ')').addBack().wrapAll('<div class="button-group" />');
});
</script>