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’, […]
Language: php
You’ve probably noticed that some features of Customizr are not well interpreted by some outdated versions of Internet Explorer. The beloved zoom effects on the thumbnails for the featured pages and posts lists, for example, are not supported by them. Unfortunately, thumbnails links does not work either. Add this snippet […]
Here is a useful snippet for those who need to display their slides in a random order. The random display is handled in javascript but I might come with an even simplier solution with a WordPress hook in a future release of the theme. add_action (‘wp_footer’,’tc_randomize_slides’ ); function tc_randomize_slides() […]
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 […]
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.