'

Sanitize the Google Analytics Tracking Code

Stay Safe with the Google Analytics Tracking Code

Is it a safe practice to let users copy and paste any kind of Javascript, assuming they’ll just use a tracking code? How can you validate such a code and keep it safe from malicious scripts? I decided to take a different approach, I accept (and validate) only an ID. The last day I had a thought, perhaps naive, but [...more]

Pure CSS3 Sliding Menu in the Sidebar

Pure CSS3 Sliding Menu in the Sidebar

Sure you can use jQuery to fancy a sliding menu. But what about doing the same thing using purely CSS, keeping so the whole website lighter and faster? Wouldn’t be a better approach? In this quick tutorial I explain how to create the same effect I achieved in the sidebar of this website. A sliding menu, made of pure CSS3. [...more]

Functionality Plugins vs a Framework’s Library

Just read an interesting article on WP-Candy about a method to easily porting functionality from theme to theme, extracting those single features and coding them into plugins that add each a single precise function. I thought others may have considered to get inspired by that article, so here my two cents. You can think of it as a portable functions.php [...more]

CSS3 selectors you should know as your pockets, part one

Digging into CSS3, this article exposes few new selectors, priceless resource to keep our CSS clean, while still keeping a precise control on the HMTL. Looking for ways to optimize your CSS? This article may help. Selectors and pseudo classes are in fact what makes a Cascade Style Sheet effective, linking it to the various elements in the HTML. Being [...more]

Introducing Loop Magic

Loop Magic is an approach to the WordPress loop. It has the purpose to reduce duplications of the code, keeping the theme slim and simple. It accounts for all the different loops a theme may need to perform, keeping the control room in one unique location. This should ensure better management. WordPress is organized in several key files, each with [...more]

Google Syntax Highlighter Reloaded

Not happy with methods and plugins to highlight codes, I’m presenting a solution to load the scripts only where necessary, aiming to deliver soon a proper plugin for WordPress. As quick note, I realized that the task may need a proper plugin. I’m working on it and I’ll publish something about in the next days. Stay tuned. After few test, [...more]

5 CSS3 properties you need to master about Background, Corners and Shadows

CSS3 Properties, Box Shadow, using the box-shadow property to clone objects

A quick review of few basic CSS3 properties, with examples and tips about how could we use them in elegant ways. Inspired by articles and trublematics about CSS3, I decided to sum up and I’ve been pleased to discover I can add few tips on the topic. Even if we should be aware that still the majority of the users [...more]

WordPress, save an image as featured

Copenhagen Harbour, a sunny day

A step by step guide to the post thumbnail for WordPress. More appropriately the Featured Image. Just recently, I published few resources and articles about how to enhance the Post Thumbnail feature, via the functions.php file. Still a consistent part of visitors seem to look for a more simple, straightforward approach. Let’s see how to activate and use the Featured [...more]

QR Codes for Business Card, a Quick Gallery

Anita Brown Crayon, Business Card with QR Code

I’ve recently used a set of QR Codes in a campaign (a client running for election). The idea of linking a promotional card (a paper object), to the web, has something able to intrigue me. On the other hand, we’re seeing QR Codes more and more frequently. Vastly used in Japan, QR Codes are taking space in the Western World. [...more]