Function: add_filter()

63 posts

facebook-like-box-in-place-of-customizr-featured-page

Adding a Facebook Like Box in place of a featured page in the Customizr theme

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 […]

Html entities and shortcodes in Featured Pages

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 […]

Add new custom socials icons

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’, […]

Changing the default length / limits of the slider texts

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( ‘tc_slide_title_length’, ‘my_slider_text_limits’ ); add_filter( ‘tc_slide_text_length’, ‘my_slider_text_limits’ ); add_filter( ‘tc_slide_button_length’, ‘my_slider_text_limits’ ); function my_slider_text_limits() […]

Changing the default image sizes in Customizr

In Customizr, there are three image sizes by default defined in class-fire-init.php. Each of them has a specific filter allowing developers to change its properties. If you need to modify the image sizes and are not developer, you’ll want to give a try to this plugin.   //Default images sizes […]

Adding an update status next to post titles in WordPress

This simple snippet adds an update status after your post title in WordPress. It checks if the post has been updated since its creation and if this update is less than n days old. If the condition is verified, it adds an update status text after the title. In this example, […]

Changing the title of the categories archive pages

Customizr includes some useful filters if you need to customize your category archives titles.   Changing the default prefix : “Category Archives :” add_filter(‘tc_category_archive_title’ , ‘my_cat_title’); function my_cat_title($title) { return ‘My archives title for : ‘; }   Changing the heading of a specific category’s archives page Note : A […]

Changing the post navigation’s texts

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 […]

Customizing the slider navigation arrows

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 […]