Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #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:




    have you add following code to functions.php:

    add_filter('widget_text', 'do_shortcode');

    - otherwise the shortcodes will be ignored by wp.

    More information can be found here:



    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:

    /* 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.


    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.


    Glad that it works now :)

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Adding a new shortcode’ is closed to new replies.