Add content below slider

⚠️ Code snippets might not be compatible with the latest version of your theme. Always use a child theme to customize your theme, and test your code on a staging website before migrating to production.

You can search the user’s forum or ask the user community by opening a new thread in the Customizr theme forum. Before opening a new topic, you might want to follow the troubleshooting steps..

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.