Hi, This short snippet allows you to replace the featured page image background by an embedded video. It uses the filter hook named : fp_img_src for which you can specify 2 parameters : the featured page name (one, two, three) and the id of the post used as a featured page. In […]
Function: sprintf()
By default in the Customizr theme, the featured pages images use by priority : the page featured images if the featured image is not set, then it uses the first image (ordered by date) attached to this page. (in other words, the first images that has been inserted in the WYSIWYG […]
Following a user request on the Customizr support forum, I have worked on a simple solution to display your existing content as sections. The whole idea here is to use a selection of the pages and posts already existing in your website, and combine them on a single page. This allow to easily create […]
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 […]
This snippet replaces the default published date by the last post update’s date in your post metas. add_filter( ‘tc_date_meta’ , ‘display_the_update_date’); function display_the_update_date() { return sprintf( ‘<a href=”%1$s” title=”updated %2$s” rel=”bookmark”><time class=”entry-date” datetime=”%3$s”>%4$s</time></a>’ , esc_url( get_day_link( get_the_time( ‘Y’ ), get_the_time( ‘m’ ), get_the_time( ‘d’ ) ) ), esc_attr( get_the_modified_date(‘F j, […]
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. This snippet will be […]
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 […]