Author Archives: Tejaswini

How to Create Logo Slider using Client Logos and Brands

You must have seen popular and authentic site’s logos appearing at the bottom of a site. It helps in building a trust with the visitors and also helps in showcasing the work by showing the logo of existing clients. To get more attraction and utilize the bottom area, one can also try using carousels to show more brand images or logos in limited space. As it keeps sliding, there will be more chance to get it noticed. That’s why thousands of people search for a good logo slider for their website a month.

Today I will review a very nice Logo Slider named Placid Slider from SliderVilla. It is a premium carousel for WordPress which creates an awesome, elegant smooth scrolling slider using the brand images or logos of the websites or company.


Some of the features of Placid Slider are such as,

  • On-hover color/grey-scale effect
  • Special Skin to create 1-Click logo slider
  • Link slides to external or internal links
  • 20+ transition effects
  • Drag and Drop slide reorder
  • Responsive Design
  • 100% customization from dedicated settings page
  • Slide WooCommerce and WP Ecommerce products
  • Slide Events created from Events Manager and Events Calendar plugins
  • Change Speed, Delay etc. from Settings page
  • WPML and mqTranslate compatible
  • Create recent posts smooth scrolling slider
  • Create category slider
  • Shortcode, Template Tag and Widget options to embed
  • And many more premium features

There are many WordPress plugins available on repository or other sources but the logo sliders created out of Placid looks awesome because of the pre-loaded skins and effects.

What to Expect in a Logo Slider?

When someone needs a logo slider for his website, what are the points which comes into his mind? Well, some of the important things which should come are,

  1. How to upload and manage logos?
  2. What will happen if logos are of different sizes?
  3. Whether continuous scrolling is good or step scrolling?
  4. Should I link to the external sites?
  5. Where I should place the Logo Slider?
  6. How to make it stand out in the footer area so that people will take a look at my existing clients?
  7. It should be easy to maintain i.e. if I want to replace a particular logo with other, it should be easy to do
  8. What will happen to my site’s page load time
  9. Do I need to learn PHP, HTML,JS for the same
  10. In case of WordPress updates or conflicts, I may need support from the developer

Well, if you also have these questions in mind when deciding for a logo slider, I would say, Placid Slider is the answer for these. It is very easy to upload, reorder and remove the slides using Placid’s Easy Builder panel. You can edit the slides and add external or internal links to each slide without much effort.

Using the template tag, you can embed Placid Slider anywhere on your existing theme.Apart from that, you can use shortcode and widget options as well to embed the slider.

The grey-scale effect will make the Logos stand out in the footer area as once the visitors will hover their mouse on the slide images or logos, the real color of the logo will reveal. It looks awesome as seen on the Placid’s demo page.

Regarding the after sale support, SliderVilla is well-known for its support ninjas. I heard about the same from few people who think  the support is awesome over there, and to test that, I tried it by myself. I received a reply regarding one query related to Placid only within 10 minutes.  Support staff is very helpful and on-request they also install and setup the slider on your site without any extra charges.


Based on my experience with the Placid Slider from SliderVilla, if you are looking for a logo slider for your WordPress site, Placid is your perfect answer. The slider is also available for non-WordPress sites where you can use the slider generator to get the HTML embed code with your images and details.

Note – SliderVilla offers 30 Days money-back guarantee on its products, so you can try Placid without worrying about anything.

I recommend Placid Slider to use as a logo slider on WordPress sites.

Auto Deactivate a Plugin on Another Plugin Activation

It is sometimes needed to deactivate a certain plugin while your plugin is being activated. The reason for it can be anything, like if two plugins are incompatible or if you are providing premium version of a free or lite plugin. So while activating the premium version you can automatically deactivate the free or lite version in the activation hook of the premium plugin.

You should be using some code similar to

register_activation_hook( __FILE__, 'install_premium_version' );

in your plugin code.

You should put the deactivation code inside the ‘install_my_plugin’ function as follows:

if( is_plugin_active('lite-version/lite-version.php') ){
     add_action('update_option_active_plugins', 'deactivate_lite_version');

where ‘lite-version/lite-version.php’ is the plugin name(main plugin file).

Include the ‘deactivate_lite_version’ function below the activation hook line as

function deactivate_lite_version(){

This is how you can your one plugin will auto deactivate another installed and active WordPress plugin.

Save Plugin or Theme Setting Options using AJAX in WordPress

Almost all of the WordPress plugins provide Plugins specific Options or Settings which provide an ability to the plugin user to change the default behavior of the plugin or specify some site specific values.

So if you are a plugin author, you would create the Settings Panel Page specific to your plugin. You can read on the WordPress Codex about how to register a Settings or Options admin page for your plugin.

This Options page form will save the options value to database (options table) thru the action=”options.php”. You should be having similar kind of form statement in your Options Page code as follows:

<form method="post" action="options.php">

In order to submit this form using AJAX, specify some ID to this form, say myOptionsForm i.e.

<form method="post" action="options.php" id="myOptionsForm">

We will be using jQuery Form plugin to submit the form using AJAX. jQuery Form comes shipped with WordPress itself (wp-includes), so no need to include any extra script in your plugin JS folder. Add the below code in your plugin file:

function myPlugin_admin_scripts() {
   if ( is_admin() ){ // for Admin Dashboard Only
      // Embed the Script on our Plugin's Option Page Only
      if ( isset($_GET['page']) && $_GET['page'] == 'myPluginOptions' ) {
         wp_enqueue_script( 'jquery-form' );
add_action( 'admin_init', 'myPlugin_admin_scripts' );

‘myPluginOptions’ is the Options Page Slug that you have specified in add_options_page function

After the form element closure i.e. after </form>, put the below code

<div id="saveResult"></div>
<script type="text/javascript">
jQuery(document).ready(function() {
   jQuery('#myOptionsForm').submit(function() { 
         success: function(){
            jQuery('#saveResult').html("<div id='saveMessage' class='successModal'></div>");
            jQuery('#saveMessage').append("<p><?php echo htmlentities(__('Settings Saved Successfully','wp'),ENT_QUOTES); ?></p>").show();
         timeout: 5000
      setTimeout("jQuery('#saveMessage').hide('slow');", 5000);
      return false; 

The CSS that could be included in admin CSS file or head for the modal could be as follows:

.successModal {
    display: block;
    position: fixed;
    top: 45%;
    left: 25%;
    width: 300px;
    height: auto;
    padding: 5px 20px;
    border: 3px solid green;
    background-color: #EFE;
    overflow: auto;
    -moz-border-radius: 15px; 
    -webkit-border-radius: 15px;
    -moz-box-shadow: 5px 5px 10px #cfcfcf;
    -webkit-box-shadow: 5px 5px 10px #cfcfcf;

This should help you guys to add some extra feel to your Options page. This is just a small tip on implementing AJAX submit on your Options page, you can change the message or CSS or modify the code as per the need.

How to Hide Broken Shortcodes in WordPress Post Content

Now-a-days almost all WordPress plugins and some of the advanced themes are offering ready to use and handy Shortcodes, that can be used in the post content to insert some formatted content. The content is either dynamically generated using the Shortcode attributes or  is provided by us when we use enclosing Shortcodes.

An example of simple shortcode could be

[ gallery id=”5″ ]

(Note: There is a space after the opening square bracket and before closing square bracket. The actual shortcode will not have this space)

The Need

[ad id=’9′ style=’float:left;margin:0 10px 10px 0′]Often we use such plugin for a certain time period, use the Shortcode provided by the plugin in the post content and after some days we get some better alternative rather than using this plugin and now we wish we could deactivate the plugin and stop using it. But then what will happen to all of the shortcode insertions in the post content specific to this plugin? If we deactivate this plugin, these shortcodes will become naked and visible to normal visitors of the site, which is not acceptable and would leave a bad impression on the readers. So before stopping to use the plugin, you will have to individually visit all the affected posts, remove the not to be used shortcode, implement the newly discovered alternative there and then deactivate the plugin. This could be an exhaustive procedure if you have a lot of such posts or if you have to search such posts from hundreds of the blog posts. So it would be a very good option to hide all the broken shortcodes in the post content rather than searching for them and deleting them.

For example, you have inserted YouTube videos in the posts using the [ youtube ] shortcode provided by a certain plugin. There are many such posts on your blog with such videos. Now if the plugin has broken for the latest version of WordPress or if there is a better plugin that you have found out or if the plugin is not upto standards, you might want stop using it. Once you deactivate it, all the [ youtube ] shortcodes will now appear as text in the post content, making the visitors to think what you wanted to put there.

The Solution

So, in order to hide the broken or naked shortcodes you can use a very lightweight plugin named ‘Hide Broken Shortcodes‘ by coffee2code which will not show all the broken shortcodes that rather than inserting formatted content, just appear as the text inside the post content. To use this plugin, just download the plugin zip file, unzip it, upload the plugin folder to the wp-content –> plugins folder of your WordPress installation and activate the plugin. The procedure being similar to regular plugin installation. There are no changes needed to any of the files or permissions and there is no settings page for the plugin.

[ad id=’15’ style=’margin:10px 50px’]

It is a very light and simple to use plugin. You just have to activate it and it starts working.

The algorithm for this plugin is really simple:-

  • After the working shortcodes in the content are replaced, the returned content is again scanned to find any strings resembling to a WordPress shortcode
  • If broken self enclosing shortcodes are found, they are replaced by a space.
  • If broken enclosing shortcodes are found, the content enclosed within the shortcode is shown, just the actual shortcode text is not shown.

Missing features

  • You cannot selectively hide broken Shortcodes. This plugin will not show any of the string that resembles to a WordPress Shortcode format
  • If the broken shortcode is within another broken shortcode, it will not hide the inside broken shortcode. The inside broken shortcode will be served as a naked shortcode text to the reader.

Download or Upgrade to WordPress 3.1.1 Security Update

WordPress 3.1.1 is available to download or upgrade for self hosted WordPress package. This is a security and maintenance update covering around 30 issues and tickets raised by users. After WordPress 3.1 update, few people were seeing 404 error for posts using category in the permalink. And some users also reported issues with the newly added admin bar in WordPress 3.1.

wordpressYou can download the latest version i.e. WordPress 3.1.1 from the official download page or you can upgrade from the dashboard as well. If you are doing it manually, then you will have to replace all the existing files of WordPress with latest version. In case of auto-upgrade, you just need to hit the “Auto upgrade” link available on dashboard.

WordPress 3.1.1 is having solution for the security issues related to media uploads. It will also boost the site performance. There are few fixes related to IIS6 support, taxonomy and PATHINFO permalinks.

Upgrade your WordPress blog to the latest version to keep it safe and secured.

Download WordPress 3.1.1

HTML Tags to Change the Location of Minified JS and CSS by WP-Minify WordPress Plugin

If your WordPress blog is loading lot many JavaScript and CSS files in the header area of the blog, it is recommended to use WP-Minify WordPress plugin. It will reduce the DNS lookup, JS and CSS sizes and will load your website much faster.

But the problem with WP-Minify is that it loads the minified JS and CSS at the top. That means, when you will see the HTML source of your blog page, you will find minified JS and CSS loading even before the title and description meta. It is totally fine with the users but in case you are serious about throwing title, description, keyword meta data at the top of the page for SEO purpose, then I would suggest you to use HTML tags.


The developer of WP-Minify plugin named Thaya has added html tags from the version 0.8.0. Here is the template tag of the plugin.

<!-- WP-Minify JS -->
<!-- WP-Minify CSS –>

Paste the above code in the HTML template file i.e. header.php to place the minified JS and CSS at a location as per your need. I would recommend to add them just below the normal CSS and JS call in the header section of the template file.

This way you can place minified JS and CSS on your blog to let them load as per your choice. This will give you more control on the object loading for your blog as well as will let you serve SEO related meta data at first to the search engines like Google and Yahoo.

Did you find this post helpful? Do you think minified JS and CSS placement is important?

Customization Guide for W3 Total Cache WordPress Plugin


To load your WordPress site pages faster, one should install caching plugin. There are lot many caching plugins available for self hosted WordPress, but the popular ones are W3 Total Cache, WP Super Cache and Hyper Cache. Here I will talk about the most downloaded and widely used W3 Total Cache plugin and will detail out the customization and features available in this plugin. By the end of this post, you would be able to understand the purpose and functioning of W3 Total Cache plugin. I am pretty sure that you will see change in your WordPress site’s load time after installing this kind of caching plugin and proper customization.

Install and Activate W3 Total Cache

Download the plugin from plugin repository and install on your WordPress site hosting server. Installation is as simple as other plugin installation. You just need to copy the unzipped folder into wp-content/plugins folder in your site’s root. Now go to the dashboard ==> plugins menu, and activate “W3 Total Cache”.

If plugin gets activated without any problem, its fine. In case you are getting error saying that some changes required in the wp-config.php file, then you need to find the wp-config.php file in the root folder of the site and make required changes over there. Or you can make the wp-config.php writable to let the plugin make changes automatically.

Plugin Activated, now Customization

Alright folks, W3 Total Cache is successfully activated. Here is the first screen of W3 Total Cache which can be accessible from the new menu section named “Performance” which you can find below the “Settings” menu on Dashboard. Go ahead and click on “General Settings” to take a look at the common settings (default” done for your WordPress site.

By default, you will see following caching enabled.

  • Page Cache
  • Minify
  • Database Cache
  • Object Cache
  • Browser Cache

They are enabled but not customized. You need to customize them as per your need. Other than above options, CDN (Content Delivery Network) option is also available in W3 Total Cache which can be customized to serve static contents like images, JavaScript etc. much faster from different network or sub-domain on your site.

Page Cache Customization

You can manage your site’s pages caching from this particular option available under “Performance” tab. You can exclude any specific page from caching or even exclude cookies from caching as well. Set the cache expire time on this page. Default values are fine for normal sites with up to 10,000 visits per day. If you are seeing huge traffic on your site, then you may choose to reduce the value from 3600 seconds to lower.

Prime cache is also available in W3 Total Cache on Page Cache page. You can select to create more than one set of cache files by changing the interval of prime cache. Provide the sitemap URL of your site to let W3 Total Cache create cache files as per sitemap.

Combine and Compress HTML, JS with Minify

It is an awesome and effective feature available in W3 Total Cache. You can remove the blank lines from your site’s HTML and combine many JS into one to load the page much much faster. This change will not affect the PHP code into your site’s template files. You may choose to check all the options available on Minify page under HTML, JS and CSS customization.

Note: Test your site in “Preview” mode before deploying the changes.

Database Cache and Object Cache

W3 Total Cache can serve the database from caching system as well. For objects and database cache, the default value is totally fine. If you want to exclude any page or directory, you can use these pages to add them.

Browser Cache to Gain good YSlow Score

Browser cache is very important in loading the site for more than one time. That means, if a visitor will come again to your site, he will find the pages loading much faster if your site’s browser cache is customized properly. Default options in browser cache section are good but you may choose to select each of them to have more faster site for users.

Content Delivery Network (CDN)

To serve the static pages much faster and to utilize the power of browser at max, you should use CDN. A browser can have more than 5 connections at a time and if you are using CDN, you can allow browser to load static files from other domains or sub-domain. This will make your site much faster. There are third party service available for CDN, for example MaxCDN or you can use Amazon S3 as CDN. You can also choose to serve from your hosting server by creating a sub-domain on your own domain. Create a sub-domain and point that to your site’s root folder. Now using that sub-domain as CDN, you can serve static content from there. Provide the URL of CDN in “Replace site’s hostname with” box. You can use more than one CDN to load from multiple sources.

User Agent Grouping

As W3 Total Cache can help your site caching files for mobile devices as well. If you are using any other plugin like MobilePress to serve mobile friendly pages, then W3 Total Cache can see the device user agent and find the type of device and does as per your instructions. You can group the devices or user agent in low end and high end devices and them either let the plugin redirect to some other pages or use caching for services like MobilePress.

W3 Total Cache is a nice plugin but it requires lot of CPU utilization. I would recommend to use W3 Total Cache on busy sites hosted on VPS or dedicated servers. If your site is hosted on shared hosting, use WP Super Cache.

Alright folks, this time I provided some details on the customization of W3 Total Cache plugin, wait for my take on WP Super Cache customization and benefits in few days.

Compare Self hosted WordPress and as Free Blogging Platform


Are you planning to start a blog? I would highly recommend WordPress as blogging platform for non techie as well as tech savvy people. Matt Mullenweg and few other folks created WordPress back in 2003 which is now the best CMS platform awarded by reputed organizations. WordPress comes in two different versions, one is available online at where you don’t need to worry about hosting, domains as your content will be hosted by Automattic (the parent company of WordPress) and even you will get a domain like The other version of WordPress is a complete package which you can download and install on your rented server and of course can make changes in the vanilla code of WordPress as per your need.

Whether you should choose self hosted WordPress package or hassle-free, we will try to help you in making this decision. – Advantages and Disadvantages

In this comparison post, first I will talk about which is already hosting more than 10 million websites. Here you just need to register yourself using the signup window and provide few details about your blog, sub-domain name choice etc. and your blog will be ready in no time. You can start blogging in less than 5 minutes. There are lot many theme templates available for free, you can choose any one of them for your blog and once selected, the theme will be visible on your blog. Isn’t it so easy to manage and start a blog without paying a single dollar? Of course it is as easy as buying a baby diaper from store.

wordpress-com-dashboardIn, you can browse other blogs hosted on the domain by using tag surfer and can have a community feeling as well. WordPress is also having a community platform named BuddyPress which is a dedicated platform for building community sites, but here you will get a feeling of being part of a huge platform and browse great articles by other users.

But as is managed by Automattic team, you get very less customization options. For example, you can’t edit the theme files to customize them as per your need. You can edit the CSS to change width, background color, fonts etc. but can’s add things directly into the code. You have widgets to use but then your selected theme should be widget ready. Your blog will be hosted on WordPress server, they are fast and reliable servers but still you don’t have caching feature to load your pages much faster than normal loading.

Self Hosted WordPress – A Complete Package

To overcome these restrictions, you can try self hosted WordPress package. You need to download the latest version of WordPress (currently it is WordPress 3.1) and move all the files and folders to your hosting server. Yes, you need a hosting server and own domain to start with self hosted WordPress. You can also install WordPress on sub-domain or just an IP. Once you complete the installation on server, you can install themes either from WordPress theme repository or by purchasing them from premium WP theme services.


Apart from custom themes and vanilla code customization, the major advantage of self hosted WordPress is the power of Plugins. You can add new features, options and new dimension in self hosted WordPress by installing plugins available on WordPress plugin directory. For example, if you want to add a featured posts slider on your customized theme in WordPress, install Smooth Slider from Plugin repository. You will find thousands of plugins i.e. extra piece of code for specific purpose in official plugin directory.

Installation and uninstallation of plugins in WordPress is really easy task. You can choose to download and install the plugin wither from WordPress dashboard or through FTP process. Just activate the plugin and you will find the new feature rolling on your site.

For managing self hosted WordPress, you should be ready to take few risks. For example, don’t worry much before trying a new plugin until it is hosted on official plugin repository. You may find some plugins very useful for your site and few may throw error. You should either have a developer in contact if you are not much familiar with PHP/HTML coding or CSS customization.

Purchasing domain on

As I told earlier, you get a sub-domain on for free while starting your blog over there. You can also choose to have a proper domain name as per your requirement hosted on, and for that you need to pay $17 per year. It is way more than the normal $10 for a dot com domain but they charge a premium for hosting the domain.

Final Words is no doubt a good option for those who don’t want so much customization in their theme layout, branding and adding something different in their site but just a simple blog. But I would recommend to have own self hosted WordPress setup as you will see no boundaries in future over there. You can create as many blog on single server as you want and customize that as per your need. Plugins and custom themes make this package more lucrative. If you are looking for a long term blogging and branding, you should opt for self hosted WordPress setup rather than You will get each and everything in self hosted WordPress setup what is there in .com free hosting, but in addition, you will get more flexibility, better customized look, self managed and securely backed up blog setup. By securely backed up, I mean the premium backup service launched by Automattic named “VaultPress” which is currently for self hosted WordPress blog only. In $15 per month, you can start automatic backup process for your blog and host the hourly back up files on WordPress server. You can restore any version at any point of time.

Note: I will discuss VaultPress in other post in detail. Currently I am using it for couple of my self hosted WordPress sites.