Best Of WordPress Code Snippet Part – 1

Programming-4

How To Completely Shut Down WordPress Search

Copy and paste the following snippet in your theme’s functions.php file and you are done.

Snippet Source/Credit: WPEngineer

How To Enlight Searched Text In Search Results

You do wish to Enlight searched text in your blog’s search results. To do so, simply open your theme’s search.php file and then find the the_title() function and replace it with:

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

Context Menus With HTML5

The following snippet below will give you an idea that what Context Menus with HTML5 actually is.

Snippet Source/Credit: Speckyboy

How To Make Your WordPress Website SEO Friendly Without A Plugin

This can be achieve by simply pasting the code in your theme’s functions.php file and you are done.

Snippet Source/Credit: Jeff Starr

The Editorial Team

The Editorial Team

The Editorial Team at JustWP is a team of WordPress experts led by Karan Chopra.

You may also like...