Function: add_filter()

63 posts

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 […]

Add content above featured pages

Method 1 : with an action hook This will add a two column block before your featured pages on home. add_action(‘__before_main_container’ , ‘my_content_before_main_container’ , 0); function my_content_before_main_container() { if (! is_home() || !is_front_page() ) return; ?> <div class=”container”> <div class=”row-fluid”> <div class=”span6″> <h2>This is a big title</h2> </div> <div class=”span6″> […]

Adding a logo in the footer credits

Notice for  Customiz-Pro (<1.2.5) users: In order to use this code you have to uncheck Enable the footer copyrights and credits under: Appearance -> Customize -> Footer -> Footer Credits The following is a code snippet to add your logo in the footer. It will displays your logo only  if […]