If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
September 11, 2013 at 3:26 pm #29456
I know there are lots of plugins, but I’d like to use the original source codes. I would like to add Facebook, Google+ and Twitter Buttons (those with the count bubbles) to show up just below any blog post.
Where do I need to hook my custom function, which adds the code behind any blog post, any page, any portfolio-item and any overview page, such has category pages, etc?
My first intention was to have it just in column 4 of the footer widget area, but thats far to way down on the mobile version. Then I tried with displayed everywhere, which (excuse if I am wrong in that point) is NOT shown on the mobile version.
Any suggestions, hooks and workarounds are welcome ;-)
ThomasSeptember 11, 2013 at 11:16 pm #140686September 12, 2013 at 7:32 am #140687
Ok I see, but basically I did not want to use a plugin, which even needs registration. I want to put that few code lines into the theme via an custom function in my child theme & hook the output of it.
Is there an overview/ list with all hooks of the theme? I know those of WordPress itself, but guess I need the theme hooks, when using the Avia Template Builder.
Thanks a lot,
ThomasSeptember 14, 2013 at 4:59 pm #140688
I’d recommend to use the the_content filter/hook: http://codex.wordpress.org/Plugin_API/Filter_Reference/the_content to insert your icons/links after the page/post content.
PeterSeptember 15, 2013 at 11:18 am #140689
I got it working, by putting exactly the same code from another project of mine into it. Unfortunenately the Facebook Like comments field popup did not work properly. Only a third of the full popup was visible & I found no way to get it running. Placed now the same share buttons with AddThis in the same position and it worked. Well now, another plugin, but I had no more time to waste on the Facebook integration – its always FB making trouble. :-(
The topic ‘Where to hook the code for FB, G+ & Twitter buttons?’ is closed to new replies.