Blogger : How to modify Pages widget / gadget for mobile template

When you want to add some external links to your sidebar for your Blogger website, you can use the Pages widget / gadget for that purpose. The problem with this gadget is the way it is displayed for the mobile devices. It is displayed as a dropdown menu containing the links, which might not be what you want. In this article, I will show you how to modify the template code for the Pages gadget, so that it is displayed the same way as in the desktop version.

Read More

How to fix IntelliSense canvas context problem in Visual Studio

When coding in JavaScript, I prefer using Visual Studio IDE due to its JavaScript IntelliSense and debugging capabilities. But recently, when I started to experiment with canvas, I noticed something strange. As you might know, to draw and manipulate graphics on canvas element, you first need to get the canvas context. In some instances, the IntelliSense is not working on canvas context and as a result, the list of suggestions is missing all the context methods and properties you would expect. This article will show how to fix that.

Read More

Canvas : How to create a simple particle system in 50 lines

Recently I started to learn how to use canvas HTML5 element and the first thing I tried to do was to draw a small rectangle. Next I wanted to an add animation loop and move that shape. After that worked, I wanted to add a bunch of them all moving in different directions and this is how my first particle system was born. This article will show you how to create one yourself. The particle system is a pretty basic one. Each particle gets a random color, random direction and random speed when they are created. After they reach the edge of the canvas, they will bounce off of it.

Read More

WordPress : How to show tag count number of posts for Tag Cloud

Recently I modified a style of my tag cloud widget in a way, so it is less of a “cloud” and more of a list of tags with each tag in its own lines. With so much empty space on the right side of the tag, I wanted to add additional information to the visitors besides the name by showing tag’s count number of posts. I expected that the parameter for this behavior would already exist, but it turned out it doesn’t after looking at wp_tag_cloud function, which lists all parameters. Luckily, there is a filter available which we can use to make this work and is the topic of this article.

Read More

WordPress : How to solve missing Admin Bar / Toolbar at the top of the page

If you were making changes to the WordPress site theme and the admin bar (also known as a toolbar) on a live site disappeared, you are not alone. This happened to me too. I noticed that the admin bar at the top of the page was missing on the front end after making some updates on my theme. The admin panel was still accessible through /wp-admin/ path and inside the dashboard, the admin bar was not broken. In this post I will show you why this happens and how to bring it back.

Read More

WordPress : How to modify parameters of default Tag Cloud Widget

Tag Cloud Widget gives visitors ability to browse different topics based on tags on your site. Recently I wanted to customize it a little for this site and assumed the widget itself would give you these settings, but you can only edit the most basic parameters. Instead of widgets, we can display the tag using WordPress function wp_tag_cloud in the template, which supports more parameters. But what if we want to use existing cloud tag widget? Luckily, there is a filter available that allows you to do that and is the topic of this article.

Read More

Google-Ads : How to fix DoubleClick referrer to 404 non-existing page

When checking the log files either using Google Analytics, StatCounter or any other means, one interesting information is the referrer. They show from where do visitors come from. Especially interesting are referrals not coming from organic searches. Every once in a while I noticed a strange referrer as it was showing visitor coming from an ad company and the landing page was to a non-existing page giving 404 error. This article will explain why this happens and how to fix it.

Read More

Share this page

Back to Top