Add content below slider

Add this function in your child theme’s functions.php

add_filter('tc_slider_display', 'content_after_slider');
function content_after_slider($html) {
$after_slider = ''; //Put your HTML inside this var
return $html.$after_slider;
}

Your HTML code goes inside the $after_slider var, in between the single quotes. Please note that the HTML you input must have all single quotes (‘) escaped with a backslash (example: hell\’s kitchen).

Note that your HTML will be displayed after each slider in your website, not just the one from first page. If you only want to display it on the front page, you might want to hook it above the featured pages block, using this snippet.

Note that functions.php is not supposed to be a modified copy of its parent theme counterpart. If unsure, please read about how to create a child theme.

30 thoughts on “Add content below slider”

Comments are closed.