
Originally Posted by
keneso
Looking to customize some of the buttons, i.e. the "previous" "product listing" "next" ones when viewing a product.
Spent lots of time searching for the snip where to add the class, but can't seem to find it.
Appreciate if someone can suggest the file that outputs the following:
<button type="button" class="btn button_prev button_prev">
<button type="button" class="btn button_return_to_product_list button_return_to_product_list">
<button type="button" class="btn button_next button_next">
Which btw repeats the "button_prev", "button_return_to_product_list", and "button_next".
And eventually how to add the extra class.
Thank you
includes/templates/bootstrap/templates/tpl_products_next_previous.php
line 42:
Code:
<a class="p-1" href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a>
add extra class parm to the zen_image_button function.
you also have to go outside of the template and look here:
includes/modules/product_prev_next.php