Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Custom Montezuma 404 page


 
Prev Previous Post   Next Post Next
  #1  
Old Feb 15, 2013, 01:24 AM
jerryc
 
367 posts · Oct 2012
Florida
Custom Montezuma 404 page

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
 

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:16 AM.


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