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 »

[SOLVED] Custom 404 page


  #1  
Old Mar 7, 2012, 07:07 PM
cajunman4life's Avatar
cajunman4life
 
7 posts · Mar 2012
Hi, I searched this site for a while and could come up with nothing. Forgive me if it's already been answered, point me in the right direction and I'll be happy to read

I want to build a custom 404 page for use on my site with this theme, but have no idea how to go about it. This theme is crazy complex for me!

I greatly appreciate any assistance you can offer. Thanks!
  #2  
Old Mar 7, 2012, 07:25 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
One thing you could build off of is the 404.php file that is in the Twenty Eleven theme folder. Just put a copy in the Atahualpa Theme folder and you will have a new 404 page with a search box. You could then go ahead and style as you like.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Mar 8, 2012, 08:52 AM
cajunman4life's Avatar
cajunman4life
 
7 posts · Mar 2012
Quote:
Originally Posted by lmilesw
One thing you could build off of is the 404.php file that is in the Twenty Eleven theme folder. Just put a copy in the Atahualpa Theme folder and you will have a new 404 page with a search box. You could then go ahead and style as you like.
Thank you very much! I thought about doing something like this but didn't fully know the ramifications of pulling a file out of another theme. I'll play around with it a bit today.
  #4  
Old Mar 8, 2012, 09:20 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I didn't know either when I first tried it. Sometimes it's a matter of just "giving it a shot". Worse case scenario for this situation is you would have to delete the 404.php file.

Let us know how it works out for you.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Mar 8, 2012, 05:27 PM
cajunman4life's Avatar
cajunman4life
 
7 posts · Mar 2012
So, I did that, and the resulting 404 page was hopelessly borked.

Luckily, it turned out to be much, much easier than it had to be. All I had to do was be stuck at work for a while waiting for another team to do something before I can begin my work. This gave me some "free time."

Looking in the index.php file, it would appear the 404 is built in. So I copied just the top part of the file, and the bottom footer call. I added my own little flair in the middle, and here is my result:

PHP Code:
<?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);
?>

<h1><?php _e('Not Found','atahualpa'); ?></h1>
<p><?php _e("Well that's embarrassing! I can't seem to find that!","atahualpa"); ?></p>
<p><?php _e("You could try one of two things. You can either:","atahualpa"); ?></p>
<h4><?php _e("Search","atahualpa"); ?></h4>
<p><?php get_search_form$echo ); ?></p>
<h4><?php _e("OR","atahualpa"); ?></h4>
<p><?php _e("You could try the old site, <a href='link-to-old-site'>link-to-old-site</a>.","atahualpa"); ?></p>

<?php get_footer(); ?>
I saved that as 404.php, and bingo! Everything works as expected.

Now I will use the same template to create a custom author.php file.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get custom search form to display on a custom search page ltacf1 Installing & running WordPress 1 Jan 19, 2012 06:24 PM
Custom Page Template Alters Page Order In Menu Bar RichardG Page & Category Menu Bars 1 Sep 8, 2011 04:31 AM
[SOLVED] Combined Page + Category Custom Menu Results in Blank Page?? swartlkk Page & Category Menu Bars 7 Aug 31, 2011 03:41 PM
[SOLVED] Putting custom non-page links in the page menu bar. in10 Page & Category Menu Bars 4 Nov 8, 2010 11:06 AM
How to have next/prev Page links in custom page template? bongo Center area post/pages 1 Oct 1, 2010 05:28 AM


All times are GMT -6. The time now is 05:14 AM.


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