• Hi there
    I have added the WP Featured Content Slider onto the home page of my site using the shortcode but despite trying to add text before it, the slider still forces its way above the text.
    I don’t want the slider to appear at the top of the page but have tried all sorts of things to get it display further down. Any ideas would be welcomed.

    I’m using the suffusion theme and the page can be seen at https://www.limelightmusicagency.com/proof

    thanks
    Kevin

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the exact same problem. Did you find a solution suddensway???

    one possible solution is if the plugin author (or you) re-programmed the code of the slider to ‘return’ the slider output instead of ‘echo’ing it directly.

    of the plugin files, edit featured-content-slider.php;
    find:

    function insert_feat($atts, $content = null) {
        include (ABSPATH . '/wp-content/plugins/wp-featured-content-slider/content-slider.php');
    }
    add_shortcode("featslider", "insert_feat");

    change to:

    function insert_feat($atts, $content = null) {
    	ob_start();
        include (ABSPATH . '/wp-content/plugins/wp-featured-content-slider/content-slider.php');
    	$slider = ob_get_contents();
    	ob_end_clean();
    	return $slider;
    }
    add_shortcode("featslider", "insert_feat");

    (not too widely tested)

    thanks. That seems to work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slider at top of the page with shortcode’ is closed to new replies.