I am having a very difficult time being able to align my Pin It Button from it’s location at the bottom of the page of each product. I want it to line up with our FB and Twitter Icons. The button works great I’m just have a tough time trying to figure this out. I know it is probably really easy but I am totally stumped. Here is a link to the site to show you what I’m talking about.
Thank you very much,
It is appearing in that location due to the priority that it is getting rendered. We can adjust that value to move it around a little.
Add this code to the top of your functions.php:
if( class_exists( 'SOD_WooCommerce_Pinterest_Button' ) ): remove_action( 'woocommerce_single_product_summary', array( $SOD_WooCommerce_Pinterest_Button, 'display_pinterest_button' ), 100 ); add_action( 'woocommerce_single_product_summary', array( $SOD_WooCommerce_Pinterest_Button, 'display_pinterest_button' ), 10 ); endif;
In the add_action function where it says
10– that is the priority. If 10 puts the pinit button up too high, you can raise that number to make it fire later. On the theme you’re using, I can’t tell what that magic number will be, so you might just have to play with it a little bit. Also, I can’t say for sure if it’ll line up perfectly with the FB and Twitter icons.
Let me know if you have any other questions! Also, please reply back and let me know if it works or not for you.
I’m using Woocommerce and Buro commerce theme and this does not work. I see the add to pinterest tab on the products backend, but the pin button does not appear on the front end products pages.
Did you enable it on the product by checking the checkbox and clicking update on the product? If so, would you mind posting a link to a product that has it enabled? I might be able to tell what’s going on by looking at it. If you don’t want to post a link publicly, you can e-mail us directly at the following email: support [at] sixtyonedesigns [dot] com.
Hmmm tested and enabled this on one product, the button appears…..pressing it, nothing happens!
Upto date on both Woocommerce and WP!
- The topic ‘[Plugin: WooCommerce Pinterest Button Extension] Pinterest Location’ is closed to new replies.