Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/CloudIngenium.com/htdocs/wp-includes/functions.php on line 6114
Custom 404 pages – How to write one for Community Server 2008 – Knowledge eXchange

Custom 404 pages – How to write one for Community Server 2008

So I've been working on a couple of sites using CS and I decided to customize the 404 page as the default one doesn't help people who are visiting your site very much. I decided to use something simple and easy to implement so here are the details. Any other methods, suggestions or more appealing custom 404 pages are welcomed. 

Steps:

 

  1. Create a site article for your 404 page (Dashboard » Administration » Site Administration » Manage Articles)
  2. Use a page name like 404page and a descriptive title that indicates it is a 404 page error. You can take a look at my own 404 page to see how it looks. 
  3. Include the following code:
    1. <p>We apologize, but we are unable to find the page you are looking for. </p>
      <p>Please try using our site search located on the right side to find the content you are looking for or see other suggestions below.&nbsp;</p>
      <p>
      <script type="text/javascript"><!–
      var GOOG_FIXURL_LANG = 'en';
      var GOOG_FIXURL_SITE = 'http://JCBauza.com/';
      // –></script>
      <script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js" type="text/javascript"></script>
      </p>
  4. Don't forget to set your URL Site to your own one so that Google can better suggest results for you and search your site

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.