May 25, 2011 at 2:57 am #4408
I know that support is going to be limited on this since it doesn’t directly involve your theme… but I’m hoping for a little help here.
I came across a site tonight that tells how to quickly and easily add a Twitter share button and Facebook like and send buttons onto your wordpress site. You insert their PHP file into your main theme folder, add a call line into the theme’s functions.php file, and then insert a shortcode into the sidebar. Problem is, I don’t think this file is getting called properly in the functions.php file because the shortcode is just being displayed as text in the sidebar.
I have tested this with three other themes though and it works flawlessly. I’m only having trouble with Avisio. I think there’s something weird/different with the way the functions.php file of this theme works. Any help would be greatly appreciated. Here’s a link to the site with the instructions and the file: http://digitalraindrops.net/2011/04/facebook-like-and-send/
Thanks.May 25, 2011 at 5:20 am #46210May 25, 2011 at 6:05 am #46211
Thanks for the reply. I tried adding that to the functions.php but still no change. On the other themes I tested, I only had to insert the “facebook-like.php” file into the main theme folder and then add this to functions.php:Code:/* Add a call to the Facebook Like File */
if (file_exists(TEMPLATEPATH. ‘/facebook-like.php’)) include_once(TEMPLATEPATH. ‘/facebook-like.php’);
I also noticed that your functions.php file is not closed. Is this intentional?
Thanks for your help. I really hope we can get this figured out so I can get this added.May 26, 2011 at 9:07 pm #46212
Hmm. After adding both lines in (what Dude suggested and the line I had), it started working all the sudden. Thanks for the above and beyond help.May 26, 2011 at 9:15 pm #46213
The topic ‘Adding a new shortcode’ is closed to new replies.