Skip to main content

How to fix the “No rules defined for… in the context of InstantArticle” errors in Facebook Instant Articles WordPress Plugin

If you stumbled upon this post, you most likely know what Facebook Istant Articles are and how to properly implement them in your WordPress blog. In the unlikely case you don’t, we strongly suggest to visit this page first, read the informative stuff, follow the Sign up link to enable the feature on your Facebook page, then install this WP plugin and configure it.

If you already did this and you ended up here, chances are that you’re facing a warning similar to the following one:

This post will not be submitted to Instant Articles because the transformation raised some warnings.

This post was transformed into an Instant Article with some warnings:

No rules defined for <div class=”shareaholic-canvas”> in the context of InstantArticle

The warning gets raised near the bottom of the Edit Post page within the WP-Admin interface, just like the screenshot below:

Read More

Change WordPress Permalinks without breaking the previous ones (avoiding 404 HTTP errors)

If you know something about SEO, you probably already know what WordPress Permalinks are and the huge impact they have on your website visibility around the web. For this very reason, changing their structure is not a trivial task and shouldn’t be underestimated by any webmaster or blog owner: not doing it properly will most likely result in broken links, 404 Page Not Found errors and other dreadful scenarios that will bring your SEO score down. In this post we will try to overcome these issues: however, before we do that, let’s make sure we’re all on the same track.

Read More

Yet another optimized robots.txt file for WordPress (including all the latest Googlebots)

There are a lot of self-declared “optimized” robots.txt files for WordPress around the web, but most of them don’t allow full access to most Googlebots that scans our website for various reasons, such as: mobile browsers compatibility, PageSpeed insights, tag/structured data analysis, & more. Here’s a list of all of them as of October 2016, including the most recent ones.

If you want to be sure that your robots.txt isn’t blocking any of these, you can test your website URLs with the following tools:

Read More

ASP.NET Core and Angular 2 – The Book

My ASP.NET Core and Angular 2 book is finally out! The publisher did an awesome job, as it’s already available through a number of major online e-book market stores such as,, iTunes, Kobo as well as on the Packt website.

UPDATE: First sales data: #1 in Japan, #3 in UK, Best Seller in Germany and France!

The whole experience was a blast, since I got the chance to work side by side with a number of IT professionals who helped me reviewing and finalizing this 470-page monster, debugging more than 5.000 lines of source code samples (everything is also available on GitHub) and publishing the sample SPA on the website.

In the following day I will release here some significative highlights/content snippets of the book contents, to give the readers the chance to evaluate the product before spending their money to get it. For the time being, here’s a quick overview of what the book is about: I hope it will help many ASP.NET developers to make the shift from ASP.NET 4 to ASP.NET Core and also from AngularJS to the brand-new Angular 2 framework. Happy reading!

Read More

Url.Action Extension Method written in C# to handle multi-language Routes in ASP.NET MVC

As anticipated here – and also by popular demand – we’re publishing an Extension Method sample that will enhance the Url.Action helper method in any Razor View allowing the developer to specify a CultureInfo object – or even a null one, to use the CultureInfo.CurrentCulture – that will be used to build a multi-language URL. Needless to say, such URL will only work if we configured a multi-language aware Route within our application such as the one we mentioned in this post.

Read More