blog

2 minutes read
It’s so common on the internet to have your content stolen. People often scrape your entire hard-worked content and put it over on their sites. That includes image hotlinking too, when the images hosted on the web server paid by you, being used by someone else. If you use WordPress to publish your content, you can easily enable image hotlinking protection on your WordPress-powered site. This post is all about guiding you to protect your images from being stolen like that. What the heck is Imag...
2 minutes read
You can create two types of blogs with WordPress: WordPress.com hosted and self-hosted by installing WordPress on your web host. I’m not going to cover the difference between these two, but I’ll tell you how to find out owner’s information of WordPress blogs of both types. Again, reason to contact owner can be anything, a request for guest post, content take-down, or advertising etc. This guide comes in handy when you are not able to find how to reach to the author of a WordPress based blo...
2 minutes read
We want to customize lots of things in our WordPress themes, and WordPress gallery style can be one important of those. At first, it may seem easy stuff, but actually it isn’t that easy. As a developer, you may think of customizing the look of WordPress galleries just by adding some CSS in the style.css of your theme. But that alone is not gonna work since WordPress automatically adds a default style snippet in the post that contains a gallery, which provides default styles to the gallery, and...
2 minutes read
WordPress functions wp_enqueue_script / wp_register_script and wp_enqueue_style / wp_register_style add additional version info in the end of the JavaScript and CSS files you link (include or add) using these functions. This version info is important to ensure that the correct version of the file is sent to the browser regardless of caching. Below screenshot explains how a version number appears in WordPress enqueued scripts and styles, see the highlighted part: Preventing WordPress to add vers...
3 minutes read
The load time of a website is one of the most important factors that should be considered for better SEO and User experience optimization. It’s the total time a website takes to load into the browser. Lesser the loading time, better will your site be scoring on searches and UX. Speed matters! With WordPress, it’s quite easy to mess up with the load time of your site. Within the activation of 2 new plugins and 1 new theme, there are 70% chances that the load time of your WordPress site may in...
a minute read
WordPress featured thumbnails allow you to add a featured image to your posts. If your WordPress theme has this functionality, then you may set a featured thumbnail to your post by using the Featured Image meta box by clicking the Set Featured image link and uploading your image. The featured thumbnails generally appear in the index pages of your blog along with post body (or excerpt). Featured Image meta box in WordPress Dashboard But in case when you publish posts frequently and forget settin...
a minute read
Gutenberg has brought in things which look quite interesting to enhance our editing task to another level. But I’m sure there are folks like me who don’t like adding one more external CSS file to their theme–the point here is to avoid another render block. If you are like me, you may have already noticed that style.min.css (with the ID wp-block-library-css) file popping-up in the head section of your WordPress site’s HTML. Note that this is the file which keeps the Gutenberg blocks as is...
a minute read
When you upload and add images in your WordPress posts, you might have noticed the dimensions that it adds to the image automatically. Same goes with the post thumbnails, they also carry some auto-generated thumbnail markup. The dimension markup is nothing but the width and height attributes that resize images in the post. But these dimension attributes may create problems with a responsive layout. Take a look at the highlighted section in the below given code, that’s what I’m talking about:...
a minute read
WordPress automatically adds its current Version number to the head section of the themes. If you view the source of a WordPress-based website, you may find out the WordPress version it is using. Below given is the meta tag that carries that version information and can be spotted when you right-click and view source of a WordPress site: <meta name="generator" content="WordPress 4.3.1" /> This extra information about CMS version is added by WordPress itself in order to ke...
a few seconds read
The native WordPress search feature by default displays pages in the search results. The feature is meant for site-wide searches, but could be annoying to users who just want to display only the posts in the search results. I have this small code snippet working for me from day one to exclude pages from the searches. It goes in the functions.php file of your WordPress theme: function search_tweak( $query ) {   if( $query->is_search ) {     $query->set( 'post_type', 'post&...