About Yumna Tatheer

I am a Computer Science graduate and a part time blogger from Lahore, Pakistan. I am a PHP programmer and a wordpress expert.

How to Remove 404 Error from Google Index

We all have experienced errors like

“Sorry. 404 page not found ”

if the resource on that url has been moved.  These 404s errors will go away by themself generally after a week or so, but if your domain has too many 404 Errors floating around in the search engines a few things may happen:
1.Your site’s reputation may be hurt.
2.Your site’s rankings may suffer.
3.Your site may be penalized.
4.Your site may be banned from the index.

As you see, a 404-Error page is a killer of SEO campaigns (404-Errors should not be confused with “server not found” or similar errors, in which a connection to the destination server could not be made at all).

Somtimes if a page is not removed from following the above steps then it might not be a 404 truly. To test if a page is a true 404 use this tool


Here are steps that can be followed to remove 404.

Step #1: Set Up In Google Webmaster Tools

To start the process, make sure you’re site is being tracked in Google Webmaster Tools so that it can report back any potential site […]

How to add featured Image Support.

Lets talk about another wordpress trick.

Have you ever opened your post editor and found there is no featured image box in it?

A lot will say “yes”

The reason being that wordpress requires you to add theme support for thumbnails manually through your functions.php or some plug-in.

Adding the support manually is very simple. Open the functions.php file which lies in your active theme’s folder and paste this code.

Adding theme support for all post types.
Adding support only for pages.

Adding Thumbnail Sizes
You can add an option so that all thumbnails have an exact size and will be cropped to that size without keeping the aspect ratio of the image by setting a size and setting the third crop parameter to be true, as shown below
For using the thumbnail in theme, there are three functions.

has_post_thumbnail() returns ‘true’ if a thumbnail has been set
the_post_thumbnail() echos a string containing the thumbnail < img alt=”” / > tag
get_the_post_thumbnail() returns a string containing the thumbnail < img alt=”” /> tag

Read more about thumnail on this link

Highlight Search Term in Search Results

Using wordpress native search, you can use this trick to highlight the search term in the title in the search results. This can be done by tokeinizing the title and then assigning a css class to the search word. This css class can be styled with background color to highlight the search word. Use this code in funtions.php

Last but not the least, paste this in your style.css

You can also use this plugin to achieve the same funtionality without writing any code yourself. Hope you like this wordpress snippet 🙂

Pronto – Portfolio theme

A clean and minimal portfolio theme by wpexplorer.com . It has a grid layout, post-based theme, no custom-post, threaded comment supoort and author pages.
Download Preview

Use a Default Theme Background for WordPress Theme Options

You can add theme support for background image. If user does not choose an image, a default image will be set as theme background image. Use this code in functions.php

add_theme_support( ‘custom-background’, array(
‘default-image’ => get_template_directory_uri() . ‘/images/default-background.png’,
) );


Beautiful WordPress theme designed by themeforest. Switchable layout, support for background and menus, inventory manager and much more.(premium)
Preview  Info

Wp e-buy Ecommerce

An ecommerce theme which is professionaly designed, SEO optimized and great for an online shop.

Download  Preview

World Business Sillhoute

Designed by LeadCamp Inc. Blue theme ideal for company website.

Download    Preview

Sunrise Over Hills

Design by Neat Colorful Design, two Columns with Right Sidebar.

Download  Preview

Witcher World

Elegant and simple theme with change header banner support.