Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • zenithbootleg

    (@zenithbootleg)

    @reflectiondigital

    OK, first part sorted. Add something like this to your theme’s functions to change the themes available from the widget.

    // Change slider designs
    add_filter( ‘wppsac_slider_designs’, ‘new_wppsac_slider_designs’ );
    function new_wppsac_slider_designs() {
    $design_arr = array(
    ‘design-1’ => __(‘Design 1’, ‘wp-responsive-recent-post-slider’),
    ‘design-2’ => __(‘Design 2’, ‘wp-responsive-recent-post-slider’),
    ‘design-3’ => __(‘Design 3’, ‘wp-responsive-recent-post-slider’),
    ‘design-4’ => __(‘Design 4’, ‘wp-responsive-recent-post-slider’),
    ‘design-5’ => __(‘Design 5’, ‘wp-responsive-recent-post-slider’)
    );
    return apply_filters(‘new_wppsac_slider_designs’, $design_arr );
    }

    You’ll need to create your own template file, and also create matching CSS. Let me know if you need help with those.

    The template file currently needs to be stored in the plug-in template folder, which is reset during an update. Now working on that bit!

    zenithbootleg

    (@zenithbootleg)

    @reflectiondigital

    I’ve gone further than modification – I’ve created a 5th design template file.
    To make it work, I had to upload it to the plug-in’s template folder, and manually adjust the wppsac-function.php file to include the 5th template.
    I also had to add additional CSS to my theme to include the CSS for 5th design.
    I can then refer to the 5th design in the widget shortcode.
    It works like a dream – take a look at exciting-stuff.co.uk

    The only issue is that whenever WP Online Support do an update to the plug-in, it deletes my additional template file and removes my amendment to the wppsac-function.php file – but it’s no biggie to adjust the line again and reupload.

    Ideally, I need to find a way to adjust the wppsac-function.php in my theme’s functions file (with some sort of hook/filter I would have thought), and also make it look for the 5th design template in my theme folder rather than the plug-in template folder. Not sure how though.

    I’ll keep beavering away. I’ll let you know how I get on. Any suggestions / help most welcome!

    Thread Starter zenithbootleg

    (@zenithbootleg)

    Ok, thanks for letting me know.
    Is there a way of changing the category landing page layout in any way?
    I’d like to include a Widget including the posts from each of the subcategories for each category. Is that possible?

Viewing 3 replies - 1 through 3 (of 3 total)