SmartMediaPro.com
Please Login or Register

Knowledgebase

Customizing the Wordpress "Error 404" message

When an unregistered user tries to view a protected post, page or category, they will see an "Error 404" message. These messages come from within your theme, or more specifically, from within the loop within your theme.

There are a few ways that you can change this error message. You can even add html code so that the user can be directed to view your membership plans, login or register.

Editing your theme error 404 message

  1. Open your WordPress admin panel (wp-admin):
  2. Choose Appearance menu.
  3. Choose the Theme Editor page.
  4. Check to see if your theme includes a '404 Template' in the list of files.
  5. Click the link for '404 template' on the right side of the page. (if your theme does not have one, you may want to look for a 404 message within the index.php file or consult the theme designer)
  6. Edit the message text to say what you want it to say.
  7. Save your changes.

Wordpress.org links
Editing existing error 404 message
Creating an Error 404 message

An example of the html code that could be used

 

You do not have the required membership level to access this area, or the content has been moved.
Click here to login
Click here to register

 

 

This will produce the following:
You do not have the required membership level to access this area, or the content has been moved.
Click here to login
Click here to register


This knowledgebase article is designed to assist you when using our Wordpress Membership Plugin.

Is something missing? Did we miss something from this article? Is there an area that was not covered in enough detail? Please let us know so that it can be addressed. Before doing so, please ensure you have checked the rest of our knowledgebase as it may be covered in greater detail in another article.

Our knowledgebase is an ongoing and ever growing project. We apreciate any feedback that you can offer.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Hiding content (Views: 1467)

Powered by WHMCompleteSolution

Quick Navigation

Client Login

Email

Password

Remember Me

Search