The Customizr WordPress theme is entirely built on an extensible WordPress filter and action hooks API, which makes customizations safe and easy, without ever needing to modify the core structure. To some extents, the theme’s code acts like a collection of plugins that can be enabled, disabled or extended.
The following snippets can really help beginners and advanced developers to extend the Customizr core code and create any kind of websites. You’ll find snippets in the following web coding languages : CSS, HTML, Javascript, PHP.
If you are not familiar with the WordPress hooks API, I really recommend that you start with this quick and easy guide : WordPress Actions, Filters, and Hooks : A guide for non-developers.
Happy customizing 😀 !
Adding a widget area on home
In this simple example, I ‘ll show you how to widgetized the home page of the Customizr theme by placing a […]
Restrict the post navigation to the same category
WordPress offers built-in functions to display the previous and next post link. next_post_link( $format, $link, $in_same_term = false, $excluded_terms […]
Warning: call_user_func_array() expects parameter 1 to be a valid callback…
Warning: call_user_func_array() expects parameter 1 to be a valid callback This is a recurring error when dealing with actions/filter in […]
Display a slider in the 404 and search pages
Let’s say you have created a slider named “my-slider” and you want to display it in your 404 page or […]
Featured pages : display a video instead of an image
Hi, This short snippet allows you to replace the featured page image background by an embedded video. It uses the […]
The Customizr Hooks API is now documented
The Customizr Hooks API is now documented More than 300 hooks available for developers! Bookmark it here!
Apply custom or random images to the featured pages
By default in the Customizr theme, the featured pages images use by priority : the page featured images if the featured […]
Display the full post content in specific contexts
Updated March 2015 This snippet applies to Customizr > 3.3.1 and Customizr-Pro > 1.0.12. If you’re running an older version […]
Removing the title links in post lists
The Customizr theme displays by default your post titles as links pointing to the single post. Here’s a simple way […]
Featuring pages on another page / post than home
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 […]