Let’s say you need to feature your Facebook fans on your home page, and display it like one of your featured pages. I am assuming that you have generated your Facebook code for the lite box here : https://developers.facebook.com/docs/plugins/like-box-for-pages. Now, here’s a quick snippet to replace one of your […]
Function: add_action()
So you’ve set up a really neat search on your Customizr website with the this snippet. It works fine. But when you look at the search results on your site, all you see is screens and screens of images where you were hoping to see your pages and posts. Here […]
Notice:: Since Customizr 3.4.6 and Customizr-Pro 1.2.0 a new option has been added to make the footer sticky. Navigate through Appearance -> Customize -> Footer and you’ll find it 😉 3.1.* 3.2.* Cutomizr-Pro* June 2015 update: CSS moved from child-theme style.css (or custom-css box) to inline style through tc_user_options_style filter, […]
Hi, You might need to disable the built-in Customizr breadcrumb in some contexts of your website. You can easily unhook the breadcrumb actions by checking the post types, or using the WordPress built-in conditional tags. Use case : disabling the breadcrumb on the WooCommerce product pages All product pages […]
May 2014 update: Now added in the core code of Customizr since v3.1.11 When the sliders are displayed in full width, you might encounter some frustrating cropping effect for your slides, especially on very large screen devices. This snippet automatically keeps the slides vertically centered on any devices. add_action […]
Updated : works fine with Featured Pages Unlimited v1.4+ The featured pages are composed by 4 blocks ordered as follow by default : Image Title Excerpt (or custom text) Button With the following snippet you can define a new order for those blocks. Just change the order of the items […]
This snippets will allow you to add another button in any slide like in the picture below. This snippet has been developed in javascript because there are no easier way to do this with filters or actions in the current version of the theme (v3.1.6). To make the […]
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.
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 […]
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) […]
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 […]