Snippets by Rocco Aliberti

About Rocco Aliberti

I (d4z_c0nf) used WordPress a few years ago to help a friend to customize a theme for an on-line newspaper. I "met" Customizr for the first time in February 2014. I think that Customizr is not just a theme, but a real framework, and that if you do not let yourself be frightened by a few lines of code you can get almost anything you want using the large amount of hooks that Customizr provides.

Make Featured Pages titles linkable

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

Where to copy/paste this code? The simplest way […]

Post list thumbnails reordering in small viewports 3

3.1.* 3.2.* Nov 2014 update: Tested with WordPress 4.0 and Customizr 3.2.5 . Still works if you choose to display thumbnails on the left/right. Will not do anything if you display them on top/bottom. Basically ’cause the aim of this script, as you can see in the example pictures, is to avoid the alternation top/bottom, […]

Html entities and shortcodes in Featured Pages 15

Updated : Now compatible with Featured Pages Unlimited v1.4+ 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 will result in .. a big […]

Make the Footer ‘Sticky‘ 6

3.1.* 3.2.* Dec 2014 update: Fix some js typos. Dec 2014 update: Tested with WordPress 4.0 and Customizr 3.2.8 . Dec 2014 update: CSS reduced, Javascript Code added . Sometimes happens that someone feels the need to have a sticky footer. As you know, Customizr is built on Twitter Bootstrap. Let’s follow its example to […]

Dropdown Menu: On hover in portrait, on click in mobile 3

If you want expand submenus on hover all you have to do is to go in Customizr settings, Navigation, and select “Expand submenus on hover”. But what if you want to change this behavior just for the responsive menu? Then this snippet is what you’re looking for.

Where to paste this code? => in […]

Add new custom socials icons 22

Customizr provides a wide range of socials networks that you can easily activate from the customizer screen. You might want to add one, ore more, not included natively in the theme. In this case, that’s what you have to do:   1) Add them! In your child theme functions.php add this simple snippet:

Where […]

Allow thumbnails links for IE10 and below 3

You’ve probably noticed that some features of Customizr are not well interpreted by some outdated versions of Internet Explorer. The beloved zoom effects on the thumbnails for the featured pages and posts lists, for example, are not supported by them.  Unfortunately, thumbnails links does not work either.  Add this snippet to your child theme functions.php […]