Function: php functions

41 posts

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( ‘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() […]

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

Linking the whole slide’s picture to a page/post in Customizr

Notice: Since Customizr v3.4.6 and Customizr-Pro 1.2.0 a new set of options has been introduced in the slides editing screen. You will be able to set a custom link url for your image (and button), open it in a new page and link the whole slide. The caption, though, will […]

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