Typically Jetpack sharing buttons target the single page’s the_content()
function and echo the sharing icons just below the content. But for my site, I actually want it to Disable for the_content()
, but to use it in some other <div>
. I know I can check the “Disable CSS and JS” checkbox to disable the built-in functionality, but I actually don’t want to code more and I like the default CSS of Jetpack sharing icons.
I simply want a Javascript code to alter the target of Jetpack so that instead of showing under the the_content()
I can show it under another custom <div>
of my choice.
Is it possible with any filter or hook?
P.S.: I just renamed the “Posts” to “Products” for my project. It’s nothing to worry about. 🙂
Change the hook.
Related info https://wordpress.stackexchange.com/a/12826/9884