Viewing 9 replies - 1 through 9 (of 9 total)
  • You have to add the following line in your functions.php, if you want to use the shortcodes for this plugin, or anyother shortcode, in your theme’s widget area.

    add_filter('widget_text', 'do_shortcode');

    Thread Starter Col Kav

    (@councilflat)

    Thanks for the response, sorry for the dumb question but, is there anywhere in particular within functions.php i should add it? As in, between certain characters, or at the end of the file, but before certain closing tags?

    Many thanks!

    Thread Starter Col Kav

    (@councilflat)

    I tried adding it to the end, just before:

    <?php
    }

    and at the beginning, just after the following…:

    <?php
    /**
     * Core functions file for the theme. Includes other key files.
     *
     * @package Suffusion
     * @subpackage Functions
     */
    
    if (!defined('SUFFUSION_THEME_VERSION')) {
    	define('SUFFUSION_THEME_VERSION', '4.2.2');
    }
    
    require_once(get_template_directory().'/functions/framework.php');
    $suffusion_framework = new Suffusion_Framework();
    
    require_once(get_template_directory().'/admin/theme-definitions.php');
    
    add_action("after_setup_theme", "suffusion_theme_setup");

    But no luck. Is there a specific place the code should go?

    add_filter('widget_text', 'do_shortcode'); is php code, you can add php code in like this

    <?php
     //some code block; 
    
    ?>

    so then the above line would be added anywhere in your functions.php

    <?php add_filter('widget_text', 'do_shortcode'); ?>

    You don’t need to add this for Suffusion – text widgets are already shortcode-enabled. You can find the added filter in the suffusion_setup_standard_actions_and_filters function in functions.php.

    Thread Starter Col Kav

    (@councilflat)

    Thanks Killeralianmonk, for whatever reason your last post, which i received by email, didn’t show. For the benifit of all, it was…:

    <?php
    }
    add_filter('widget_text', 'do_shortcode');

    I added it at the end of the functions.php like this and it worked for me.

    Will try this in a minuite and report back.

    Thread Starter Col Kav

    (@councilflat)

    Thanks for your reply, Sayontan. And also thanks for such an excellent theme!

    So, the Suffusion theme should accept shortcode for other plugins out of the box?

    I’m using wordpress 3.4, and Camera Slideshow ver 1.3.3.3 (which i’m just going to update now). My experience is that it doesn’t work, but i’m running a risk as camera slideshow doesn’t officially support WP 3.4.

    I’ll report back.

    Thread Starter Col Kav

    (@councilflat)

    I found after updating camera slideshow that it broke WP, in that it wouldn’t go beyond the dashboard. I removed the camera slideshow plugin , and all was well. Now using http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/ instead of camera slideshow and all is working as expected, with lots of shortcode in the Suffusion widget.

    So, lesson learned, don’t use plugins that are not compliant with WP version.

    Many thanks all!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Camera slideshow] Add to widget in Suffusion theme?’ is closed to new replies.