Programming-4

How To Completely Shut Down WordPress Search

Using the following snippet, you will be able to shut down WordPress search completely.

Snippet Source/Credit: WPEngineer

How To Enlight Searched Text In Search Results

Using the following snippet, you will be able to enlight searched text in search results.

And now just before the line you modified, add this code of lines:

Once done, now open style.css and append the following line to it:

Snippet Source/Credit: Yoast

How To Automatically Add Facebook Open Graph To Your Posts

Adding the following snippet in your WordPress theme’s functions file, you will be automatically able to add Facebook open graph to your posts.

Once done, now open your header.php and replace the <html> tag with:

Snippet Source/Credit: WP Tutsplus

How To Redirect To First Post If Only One Post Is Found

Using the following snippet, you will be able to redirect to first post if only one post is found.

Snippet Source/Credit: Paulund.co.uk

How To Make Your WordPress Website SEO Friendly Without A Plugin

Using the following snippet, you will be able to make your WordPress website SEO friendly without a plugin.

Once done, simply replace the $default_keywords in line 3 with your own keywords and add the following line of code into your theme’s header.php file.

Snippet Source/Credit: Jeff Starr