WordPress.org

Ready to get started?Download WordPress

Forums

Camera slideshow
[resolved] Add to widget in Suffusion theme? (10 posts)

  1. Col Kav
    Member
    Posted 2 years ago #

    Hi,

    I've tried adding the slideshow to a widget in the Suffusion theme, custom layout with no luck. Does anyone know if this is possible?

    As a side note i'm using WP 3.4, which doesn't seem to be supported, but it seems to work otherwise.

    Many thanks in advance,
    c

    http://wordpress.org/extend/plugins/camera-slideshow/

  2. killeralienmonk
    Member
    Posted 2 years ago #

    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');

  3. Col Kav
    Member
    Posted 2 years ago #

    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!

  4. Col Kav
    Member
    Posted 2 years ago #

    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?

  5. killeralienmonk
    Member
    Posted 2 years ago #

    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'); ?>

  6. Sayontan Sinha
    Member
    Posted 2 years ago #

    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.

  7. killeralienmonk
    Member
    Posted 2 years ago #


  8. Col Kav
    Member
    Posted 2 years ago #

    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.

  9. Col Kav
    Member
    Posted 2 years ago #

    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.

  10. Col Kav
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic