Apr 07, 2011 — 5 comments
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.
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.
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 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.
In this WordPress tutorial you will learn how to add target="_blank" to links from user comment and to author name link, so you can open these links in a new window.
In WordPress theming featured image functionality helps in displaying unique images for posts, every time we have set a featured image , in order to reduce pain for us, i have found a snippet which helps to make attachment(image) as featured image. Add the following snippet in to your functions.php file.
WordPress updates are too essential for many bloggers but some times it will be pain , some of the word press users does not want to update their previous version of word press to latest version due to compatibility issues. We regularly get these core update messages and unknowingly we will update and loose every thing, in order to hide WordPress core updates here is the simple snippet to add in your functions.php file.
When we develop a blog to client , client may do some unwanted changes in the back end(settings page), so we need to hide those settings menu in WordPress, in order to disable settings menu there is a simple snippet to add in functions.php which disables settings menu.
Redirection of 404 page to home page is necessary for search engine optimization and it also helps users to get homepage from error pages. In order to redirect error page to home page, a small snippet must be added to 404.php in your theme folder, if you don't find 404page then create 404.php and add the following snippet in it.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?