Compatible with Customizr-Pro Hi, wouldn’t be cool displaying a different slider on the front page, depending on the season? That’s what you have to do: Create 4 sliders and name with the season’s names (lowercase) In Appearance -> Customize -> Content: home, posts, .. -> Front Page -> Slider Options […]
Function: tc__f()
If you want your featured pages titles be a link to the featured pages, this snippet is what you need. You do not need to copy both versions, choose the one you like best! 1) Javascript version Compatible with FPU plugin, FP plugin, Customizr, Customizr-Pro add_action(‘wp_footer’, ‘fp_titles_linkizr’, 200); function […]
Updated August 2015: Added an option to automatically loop youtube videos (default true) and code updated to work with Customizr-Pro 1.2+ and Customizr 3.4+ Updated April 2015: Added an option to prevent the related videos showing (youtube). Updated March 2015: Added unmute on hover. This snippet works also with Customizr-Pro […]
Let’s say you’ve setup three beautiful featured pages on your home page. Now you might want to display this block of featured pages in another post or page of your website. This snippet will show you how to do it. Note : Customizr-Pro and Featured Pages Unlimited users should replace `__get_option` with […]
Following this discussion in the Customizr theme support forum, here’s a simple piece of code that will allow you to add any post or page before your post or page content in the Customizr WordPress theme. The following snippet will add the content on your front page and before the featured […]
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 […]
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 […]
If your home page displays your last WordPress posts, you may have noticed that the posts on home don”t show the metas informations : dates, categories, tags, authors. This is the default behaviour of Customiz, but you might want to change this behaviour, for example to enable the Google author […]
Here’s a quick snippet to display both your logo and your site title in the header. add_action( ‘__after_logo’ , ‘display_my_site_title’); function display_my_site_title() { //first checks if there is a logo uploaded $logo_src = esc_url ( tc__f( ‘__get_option’ , ‘tc_logo_upload’) ) ; if ( empty($logo_src) ) return; //then print the […]
Howdy developer! I have been asked a few days ago in the forum how to add a Facebook like button next to the social icons. This is actually very easy to do with the Customizr hook API and you’ll find the necessary code to copy/paste below. Grab the Facebook […]
Howdy Customizr developer! A clean and simple solution to display a block of content right below the header is to add an action to the ‘__after_header’ hook (located in the header.php template of the Customizr theme). In the functions.php file of your child theme, you can write this kind of […]