Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Custom Montezuma 404 page


  #1  
Old Feb 15, 2013, 01:24 AM
jerryc
 
367 posts · Oct 2012
Florida
No need for a 404 plugin. With MZ, simply make your own main template 404.php, copying something like page.php.

In the content div, put something like "404 Page Not Found" between the <h1> tags and remove everything else between those tags.

In the post-bodycopy div, put your custom message (you'll need to use <p> tags) and remove everything else. Links to your home page, search page, site map, last post, and/or whatever you want can be included.

Save the template. To test it, simply enter a nonexistent page url of your site into your address bar.

Here's the official WP codex doc.

As an example, here's what I put up for now:

Code:
<h1>404 Page Not Found</h1>
        	
<div class="post-bodycopy cf">

  <p>Oops!</p>
  <p>The page you requested wasn't found.</p>
                       
</div>
My main menu, with a link to my home page is in the sidebar. I'll add a link to a site map after I make one.

It's possible I could have stripped out more code from the template to make it more elegant, but I didn't dig into what that would do.

Last edited by jerryc; Feb 15, 2013 at 08:09 AM. Reason: Clarification, per moderator suggestions
  #2  
Old Feb 15, 2013, 04:36 AM
juggledad's Avatar
juggledad
 
23,526 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you want this to be a 'How To:' give a step by step guide with examples and edit your explaination to be clear. in your second line you state
Quote:
In the content div, put something like "404 Page Not Found" between the <h1> tags and remove everything else.
The you start talking about the post-bodycopy div, but in the previous statement you said to remove everything else from the content div. I know what you meant to say, but it's not what you said.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 18, 2013, 02:18 PM
Neut's Avatar
Neut
 
26 posts · Jul 2010
The Netherlands, Europe, Earth
Thanks jerryc
  #4  
Old Apr 12, 2013, 10:15 PM
typo
 
8 posts · Mar 2013
This post is very helpful for creating the 404 page.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Montezuma - showing off rosetrees Montezuma Theme 120 May 30, 2016 05:09 AM
Some questions about Montezuma claudiacreates Montezuma Theme 6 Dec 8, 2012 11:48 AM
Montezuma + LATEX thunderfoot Montezuma Theme 7 Oct 7, 2012 12:03 PM
How to get custom search form to display on a custom search page ltacf1 Installing & running WordPress 1 Jan 19, 2012 06:24 PM
[SOLVED] Montezuma 2.0 for WP 3.x delware99 Other BFA WordPress Themes 2 Jan 20, 2011 02:33 PM


All times are GMT -6. The time now is 01:38 PM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.