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.
If you were making changes to the WordPress site theme and the admin bar (also known as a toolbar) suddenly 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 changes 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.
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.
Yet Another Related Posts Plugin or YARPP is a very popular WordPress related posts plugin. It supports different display options, the most interesting among them is support for custom templates. YARPP comes with built-in templates from which we can choose from, but we can add our own templates as well. This gives us ability to really customize the look for the YARPP related posts. This article will show how to activate custom templates, how to edit existing or create new ones and finally it will show some useful code snippets that can be used in them.
Recently I was thinking of ways to get more comments on my WordPress blog and one way to achieve that could be making email field optional instead of required as some visitors might be unwilling to share their email just to drop a comment. It turns out this is not as easy as it sounds. It seems the WordPress has Name and Email tied up as you can only make either both optional or both required. This post will show you, how to make email an optional field while leaving name field required.
When customizing the look of the Contact Form 7 plugin in WordPress, you might want to add your own custom classes to either your form tag, form’s individual elements or validation error alert messages. Validation messages use
<span> tag that already contains classes defined by the plugin, so we could simply override those classes, but what if we already have our own classes that we want to use? This post will show how to add classes in validation messages and other elements in CF7 plugin.
In WordPress, the Contact Form 7 is one of the most popular plugins for creating contact forms. One thing that you might have noticed though is that the validation of the URL field will not fail when you expect them to fail. For example, with the URL value of
http://xxxx, the plugin will consider this as a valid URL, even though, the URL value is missing top level domain part. The solution to this problem is to have a custom validation for the URL field. This article will show you how to achieve that.