Programming-4

Adding Search Field To Your Navigation Menu Automatically

Simply copy and pasting the WordPress snippets below in your theme’s functions.php file, you will be able to add search field to navigation menu automatically.

Snippet Source/Credit: Vanweerd.com

Display A Thumbnail Of Any Website

Simply copy and paste the following snippet in your theme’s functions.php file, you will be able to display a thumbnail of any website.

Once done, you can use the snap shortcode:

Snippet Source/Credit: Greekeries.fr

Displaying A Thumbnail From A YouTube Video Using A shortcode

If you often add YouTube video to your website, then definitely you wish to display a thumbnail from a YouTube video. This can be done simply by using the snippet below in your theme’s functions.php file.

Once done, all you have to do is to use the shortcode below:

Snippet Source/Credit: Gunay

How To Add An Extra Contact Methods To User Profiles

By default, WordPress lets you input some of your contact information on your user profile page but what if, you want to have some more fields there. Well, it is not a difficult thing to accomplish if you want to have it. Just paste the following snippet to your theme’s functions.php file but remember when you add the snippet, you do edit lines 4 and 5 as per your requirements.

Snippet Source/Credit: TutsPlus

How To Automatically Add Post Name To The Body Class

In order to automatically add post name to the body class, all you have to do is to copy the following theme and paste it on your theme functions.php file.

Snippet source/Credit: WPProgrammer.com

How To Automatically notify your members on new posts

Whenever you publish a new post in your blog, you do wish to notify your members. Well this can be done automatically by simply copying and pasting the snippet below to your theme’s functions.php file:

Snippet Source/Credit: WordPress Codex