This snippet shows you how to add a widget area after the header. You can then use it for a search bar, or a language switcher.
Language: php
The Customizr WordPress theme comes with default texts for navigation at the bottom of single posts and on post lists pages. There are some cases where you might need to change those texts, for example if you use custom posts types. You easily change these without modifying the core […]
The following is a simple snippet which describes how to replace the sliders default navigation arrows with icons. The method detailed below will also make it possible to use an image or whatever you want as navigation for your slider. Where to copy/paste the code above code? I strongly recommend […]
Here’s a quick snippet to stop your slider pausing when you hover your mouse over it.
Here’s a quick snippet to display both your logo and your site title in the header. add_action( ‘__after_logo’ , ‘display_my_site_title’); function display_my_site_title() { //first checks if there is a logo uploaded $logo_src = esc_url ( tc__f( ‘__get_option’ , ‘tc_logo_upload’) ) ; if ( empty($logo_src) ) return; //then print the […]
Howdy developer! Sometimes it might be the case that you need to execute actions only if the user is in the customization context => using the WordPress customizer. Here’s a quick snippet to check that. I use the following condition statement, checking if the $_REQUEST[‘wp_customize’] is defined to verify that : […]
Hi! In Customizr (version less than 3.10), the title displayed at the bottom of the Fancybox popin is the post or page title instead of the image title. To fix this, here’s a quick javascript snippet that displays the image title (or the alt field if there’s no title) […]
Did you ever wanted to distinguish your newest post in front of the other posts in the list ? This snippet will allow you to make your latest post look different (in any category) and to dinstinct itself from the rest. Where to copy/paste this code? The best way to customize […]
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’; }
Update : the Customiz’it button has been removed since v3.1.12 of the theme Howdy developer! Even if I have tried to style them as good as I could :-?, some of you might be bothered by the help and customiz’it buttons in the top admin bar. Or may be you […]
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, Here’s a simple recipe to change the featured pages block position in Customizr, we two lines of code! Like for the slider positioning, we will : 1 find the method controlling the featured pages block 2 identify the wanted hook to place the block 3 write the code in functions.php […]