Hook: Customizr Hooks

82 posts

Displaying the image descriptions on attachment page

The following code will display the description text field of any attachment at the bottom of the attachment page. Copy and paste this snippet at the very bottom of your functions.php file. (if you are using a child theme, don’t forget to start your functions.php file with <?php )   add_action( […]

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