Friday, 31 January 2014

Multi Level Wordpress Menu

WordPress menu are too simple drop down menu, my friend who is running a news portal wanted two row menu where it must contain main category followed with subcategory.
Then i gave this simple snippet to add by replacing the menu with this  snippet.

Enabling Multisite In Wordpress

Multi site is an awesome feature in WordPress, which enables you to create a network of WordPress blogs.
Multi site helps to manage many WordPress installations from one installation.
Advantages of multisite are as follows

Wednesday, 22 January 2014

Remove p tag around images In Post Content

In wordpress, when you upload any image in content p tag comes around your image, this may be irritating to users. In order to remove that , we have to add simple snippet in functions.php.

How To Add Colors To Private,Published,Drafts Posts In Admin

In WordPress we always have a boring same color of different posts, in order to specify each type of WordPress post in different colors ,there is a simple snippet which needs to be added in functions.php file. As you can change colors for yourselves.
In $value field add the below css by using php functionality.

Login With Username And Email Address

Have you ever tried of logging WordPress with email id, if not then follow this simple tutorial. Basically in WordPress, we have only option to login with username, when you add this snippet in functions.php we can also login with email address too.

How To Check If Post Has Gallery

In WordPress there is default gallery, i guess most of us don't use because we have awesome plugin called nggallery. But in order to check if a post has gallery or not,we have to add this in wordpress loop.

Display Default Excerpt When There is No Excerpt

While posting in wordpress blog, there may be some posts which do not have excerpts, in order to make excerpt we have add some text every time, but if we want to display a default excerpt for posts which do not have excerpts then add the following snippet in your single.php or any where in your theme(where you want to display)