Adding buttons / info to the end of each product
Q: I have two buttons at the end of the product description on
my store, each one links to either a page or a pdf. I want to add
this to the bottom of every product on the store without having to
go through all the products.
Is there a way to do this somewhere so I don't have to waste so
much time editing all the product descriptions?
A: Add below code to wp-content/themes/yourTheme/functions.php:
remove_action( 'jigoshop_product_tab_panels', 'jigoshop_product_description_panel', 10 );
add_action( 'jigoshop_product_tab_panels', 'jigoshop_product_description_panel_custom', 10 );
function jigoshop_product_description_panel_custom() {
echo '<div class="panel" id="tab-description">';
echo '<h2>' . apply_filters('jigoshop_product_description_heading', __('Product Description', 'jigoshop')) . '</h2>';
the_content();
?>
<button>Button 1</button><button>Button 2</button>
<?php
echo '</div>';
-
In order to remove a very light grey line touching the top of the buttons (if such case happens), add below code to your theme's style.css:
div.product #tabs .panel { border-bottom: 0; }
-
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