Here’s a quick snippet to stop your slider pausing when you hover your mouse over it.
Function: add_filter()
Use this function in your child theme’s functions.php to change the default link on your logo to another, custom link. Just replace http://new_link with the address you want your logo to point to: add_filter(‘tc_logo_link_url’, ‘change_site_main_link’); function change_site_main_link($output) { return ‘http://new_link’; }
Howdy developer! I have been asked a few days ago in the forum how to add a Facebook like button next to the social icons. This is actually very easy to do with the Customizr hook API and you’ll find the necessary code to copy/paste below. Grab the Facebook […]
Howdy developer! The following is a quick and easy way to add a link in your tagline in the Customizr theme. We are going to use the ‘tc_tagline_display’ filter to do so. (check how to locate a filter in Customizr) Copy and paste the following code in the functions.php file of […]
If you need to remove date, authors and tags, categories buttons below the post titles, here are two useful code snippet Where to copy/paste this code? This php code requires you to use a Child Theme. Everything you need to know about creating a child theme with Customizr here. 1) […]
Howdy Customizr developer, The following is a quick snippet that will expand (meaning show the full content instead of the excerpt) the last published post of a category list. As usual, I will try to show you the safest way to code this with the use of a child theme […]
Customizr comes with predefined social networks that you can easily activate from the customizer screen. You might want to add one that is not included natively in the theme. In this case, here’s an example of what you can do with Customizr, using the filters. I highly recommend that you […]
Wordpress sets a default limit of 55 characters for Excerpts. You can override this limit by adding this code to your functions.php file in a child theme Where to copy/paste this code? We strongly recommend you create a child theme and add this to the Child Theme functions.php. Download a […]
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 […]
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″> […]
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 […]
Hi, the following pieces of code change the default behaviour of the Customizr theme menu : 1 displays the dropdown items on hover instead of click 2 enables the click on a parent menu item It is composed of two parts that work together : a css snippet and a […]