Adding a Continue Shopping button to the single product page
Q: I would like to add a button that redirects people back to the shop from the single product page. How do I go about doing this?
A: Add below code to your single-product.php template:
'<p><a class="button" href="'.esc_url( jigoshop_cart::get_shop_url() ).'">'.__('← Continue Shopping', 'jigoshop').'</a></p>';
OR
add the following code in your theme's functions.php:
function add_return_shop_button() {
?>
<tr>
<td colspan="6">
<div>
<a href="<?php echo esc_url( jigoshop_cart::get_shop_url() ); ?>" class="checkout-button button-alt"><?php _e('← Return to Shop', 'jigoshop'); ?></a>
</div>
</td>
</tr>
<?php
}
add_action( 'jigoshop_shop_table_cart_foot', 'add_return_shop_button' );
-
Getting Started
-
Jigoshop Settings
-
Creating Products
-
Using Jigoshop
-
Customize Jigoshop
-
Testings - in case of problems on Jigoshop web site
-
FAQ - Jigoshop plugin user questions
- Add a new tab to a product page / Custom tabs on product pages?
- Adding a Continue Shopping button to the single product page
- Adding Product Category Terms in a dropdown box for Custom Post Meta
- Add Alternate text on product picture and title
- Adding buttons / info to the end of each product
- View all (171 more)
-
FAQ - Jigoshop extensions user questions
-
API
-
Screencasts