How to Add Google Analytics to WordPress Admin Panel

Recently I was in a situation where I wanted to track the Pageviews for the admin panel.  Since I use Google Analytics on all my websites, I decided to add it  to all the admin pages.

Since there are no plugins to specifically add google analytics code to admin pages, I wrote a short snippet.

In case you also want to add google analytics to your admin panel , here are the instructions. 

Read more

Display Business Hours in WordPress Sidebar

A lot of Service Business like Spa , Salon , Restaurants etc.  display Opening / Working Hours on their website. In this Post I will share a simple snippet to add Working / Business Hours to the WordPress SideBar.

We will utilize the all powerful WordPress Text Widget to display the business Hours.  Since the Text Widget Supports HTML , it is a matter of pasting an html snippet to display Business Hours.

Read more

How to Add Categories and Tags to Pages in WordPress

By default WordPress does not allow a user to add categories to Pages. However adding categories and tags to Pages is quite simple.

In this post I will share a code snippet which allows you to add Post categories to Pages. Here is what we will be doing:

  • We will link Category and Tag Taxonomy to the Page
  • Modify WordPress Query to display List of Pages using Category Archive and Tag Archive.
  • Add the Snippet to our WordPress Website

You can also achieve the same result by using this plugin 

It sounds difficult but in reality its quite simple :-). Lets start

Read more

A Simple Guide to Customizing the WordPress Admin ToolBar

A lot of people have Love-hate relationship with the WordPress Admin Toolbar. I personally love the toolbar as it makes life easy for me. I spend a lot of time working with WordPress and would simply go mad it there is no toolbar. It makes super easy to switch between the Front end and the Back End.

However there might be some cases where you might want to customize or all together remove the toolbar.  For example you might encounter a situation where you want to disable toolbar based on user roles. In this post I cover a few techniques which can be used to customize the WordPress Admin ToolBar. In other

More specifically I will cover the following use cases.

  • Disable Admin Bar for all users
  • Disable admin bar based on user roles
  • Display Admin Toolbar to Logged Out Users
  • Add / Remove Custom Menu Item / Links  to Admin ToolBar

Read more

How to Remove Featured Image from All Posts in WordPress

In this post I will discuss how to bulk delete featured images from posts. One can manually remove featured images but it is time consuming and might not be practical for websites with large number of posts. So in this post I will share a few code snippets which will make the task of removing featured images a breeze. More specifically we will cover following in this tutorial.

  1. Removing Featured Images from All Posts / Pages
  2. Removing Featured Images from all posts belonging to a Category.
  3. Removing Featured Images from  a particular Post Type.
  4. Removing Featured Images from All Posts published before / after certain date

Take note that we will not delete the featured images, we will simply unset / unlink them. In other words the featured images you remove will still be accessible via the media library.

Lets start

Read more

A Simple Guide to customizing WordPress Text Widget

In this post I will share a few techniques to customize the WordPress Text Widget . Though the Text Widget looks  basic, it actually is quite powerful.  If you are willing to learn a bit of CSS, you can customize it in a lot of ways.

In this short guide I will be covering following topics.

  1. How to add HyperLink inside Text Widget
  2. How to add Image to the Text Widget and How to link the image.
  3. How to add a Youtube Video to Text Widget
  4. How to add Link to Widget Title
  5. How to Style the Text Widget
  6. How to add and style a List in Text Widget
  7. How to add ShortCode to a WordPress Widget

Read more

5 Plugins to add Favicon to your WordPress Website

Favicons are an important part of a website. Though Favicons are small, they do have a subtle effect on a website’s branding. Adding a favicon to a WordPress website is as simple as uploading an image to the website root directory , however I have seen that a lot of non technical users find it difficult.

So in this  in this post I will share 5 plugins which can be used to add Favicons to your WordPress Website. The best part is that we will add favicons without using FTP.

Read more

How to Add GrayScale Hover Effect to Images in WordPress

Hey Guys, In this post I will share a very simple technique to add Gray-scale Hover Effects to the images in WordPress.  We will achieve these effects only using CSS. I will be sharing a couple of approaches in this Post.

1. Adding GrayScale Hover Effects to all the Images

2. Adding the Grayscale Hover Effect to the Images in a Specific Posts / Pages

Read more