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 » Atahualpa 3 Wordpress theme » Center area post/pages »

Custom 404 Page


  #1  
Old Aug 2, 2011, 11:27 PM
pyoterguru
 
36 posts · Mar 2010
Custom 404 Page

Hi,

I need to redirect 404's to a custom 404 page saved as draft, not published.

How do I do this?
  #2  
Old Aug 3, 2011, 05:38 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
by it's nature, a draft page won't be displayed
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 3, 2011, 08:57 AM
pyoterguru
 
36 posts · Mar 2010
Alright, tried saving the 404 draft page as complete web page, then uploaded to root of my server.

Typing "http://mysite.com/404.html" at the browser address bar displays the custom 404 page fine, but how do I configure Atahualpa to load this page for site 404's?
  #4  
Old Aug 19, 2011, 01:07 AM
pyoterguru
 
36 posts · Mar 2010
Any resolution on this?
  #5  
Old Aug 19, 2011, 04:40 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
there are two ways a 'Not Found can occur
1) a page just doesn't exist
2) you search for something that is not found

Case 1
In this case you need a 404.php file in the theme folder. Here is an example for release 3.6.7
HTML Code:
<?php
/**
 * for displaying 404 pages (Not Found).
**/
?>
<?php 
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
?>

your code goes here

<?php get_footer(); ?>
This will format the page like any other page on your site

case 2:
In this case, edit index.php and look at the bottom where you will see
HTML Code:
<h2><?php _e('Not Found','atahualpa'); ?></h2>
<p><?php _e("Sorry, but you are looking for something that isn't here.","atahualpa"); ?></p>
just change the message to what you want
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Aug 30, 2011, 07:50 AM
pyoterguru
 
36 posts · Mar 2010
Thanks a lot.
  #7  
Old May 10, 2012, 08:56 AM
freelancekonsulenten's Avatar
freelancekonsulenten
 
45 posts · Oct 2009
Denmark
I have tried to make a 404.php but it don't show the styling of the pages.
Normally my pages shows like this http://www.torbenbendixen.dk/om/
But if I type an error page http://www.torbenbendixen.dk/hfdga it doesn't show like the normal pages.

What am I doing wrong?

I am using version 3.7.6
__________________
WordPress blogs og hjemmesider og webshops

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom 404 page paulae Atahualpa 3 Wordpress theme 15 Jul 5, 2011 04:42 AM
custom 404: Dunstan-style Error Page Plugin twincascos Plugins & Atahualpa 3 Dec 20, 2010 08:26 AM
[SOLVED] a parse error rather than the 404 page displayed when page not found lhanft Atahualpa 3 Wordpress theme 4 Oct 22, 2009 08:04 PM
Custom 404 Page and IE 8 abroadinspain Atahualpa 3 Wordpress theme 4 Sep 29, 2009 09:20 AM
What is the URL of the 404 page ? 3ukman Header configuration & styling 1 Sep 5, 2009 06:41 PM


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


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