Customizr comes with a default comment bubble using a font icon and displaying the number of comments next to each posts. (see below) You might want to change this and add specific content and/or a custom style. This snippet will show you how to do it and get something like […]
Function: add_filter()
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 […]
Updated : Now compatible with Featured Pages Unlimited and Customizr-Pro Customizr by default doesn’t allow you to have HTML entities or shortcodes in Featured Pages text. This is a wise choice, because the text is trimmed by default to 200 characters. This means that you might risk to have an unclosed tag, which […]
UPDATE 22 April 2015: Added filter priority value greater than 10 to ensure compatibility with new Customizr and Customizr-Pro versions. You might want to disable the red bubble displaying the number of comments, next to post titles. Here are two snippets to do it : 1) Disabling comment bubbles […]
Since Customizr v3.5+ Since Customizr v3.5, you can add a social link by adding this type of code to your functions.php : Before Customizr v3.5+ 1) Add them! Note : Tumblr now already included in the default Customizr social links. In your child theme functions.php add this simple snippet: add_filter(‘tc_default_socials’, ‘add_new_socials’, […]
By default, the slider can be displayed before posts or pages in the Customizr theme but you might want to display a slider for a specific category (or for all). The following snippet allows you to do so in two simple steps 1 First, create a slider and grab its […]
There are cases when you need to set a custom links for the featured pages displayed on front page. By default, Customizr links to the page you have choosen in the dropdown list (see the featured pages documentation) . You can easily change this with the following snippet. 1) Grab […]
With the hooks API, Customizr offers a simple way to change the global layout of your website . The following snippet explains how to create different column layouts for your content and sidebars, and apply them to specific contexts on your website. Customizr theme layouts As explained here, the theme […]
With the following snippet, you can take control of the various slider texts length in the Customizr theme : title (default 80 chars), lead text under the title (default 250 chars), button text (default 80 chars). add_filter( ‘czr_slide_title_length’, ‘my_slider_text_limits’ ); add_filter( ‘czr_slide_text_length’, ‘my_slider_text_limits’ ); add_filter( ‘czr_slide_button_length’, ‘my_slider_text_limits’ ); function my_slider_text_limits() […]
I showed you how to add a widget area after the header a few weeks ago. But what if you feel you don’t have enough widget areas in the footer? Read on…
Here’s a quick snippet to change the title attribute of the social links that’s displayed when the mouse moves over the link’s icon. By default, it can take two forms : – for rss : Subscribe to my rss feed – for the social networks : Follow me on [the social network] Let’s […]
Learn how to add a widget for qTranslate and style your flags.