0

I`m trying to relocate jetpack share buttons with this code in functions.php in child theme:

function move_sharing() {
    if ( function_exists( 'sharing_display' ) ) {
    remove_filter( 'the_content', 'sharing_display', 19 );
    remove_filter( 'the_excerpt', 'sharing_display', 19 );
    echo sharing_display();
}
}
add_action( 'woocommerce_single_product_summary','move_sharing', 60 );

And here is what i got: https://yadi.sk/i/aIWP_mWk3Y79TU

my website

I searched thru many resourced and code is almost identical, but the problem still exist.

Update: I did it with display:none for that div, but its not the answer for the question.

Any help will be very appreciated, thank you.

kh1
  • 120
  • 1
  • 10

1 Answers1

0

Have you tried this shortcode ?

use this if it a widget

[jpshare]

or

use this of you are using inside template

<?php do_shortcode('[jpshare]')?>
charan kumar
  • 2,119
  • 2
  • 20
  • 26