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 » New Versions, & Updating »

[SOLVED] 3.4.2: where to make changes that used to be in index.php?


  #1  
Old Jul 13, 2009, 11:24 AM
bcorrigan
 
85 posts · Feb 2009
Hi,

I'm updating from 3.2 to 3.4.2 and have to edit the 404 error message section and above the loop to exclude some categories from displaying on the home page. I am trying to find where that code is located in 3.4.2.

For the error message, in 3.2 in index.php the code was
PHP Code:
<h2><?php _e('Not Found','atahualpa'); ?></h2>
<p><?php _e("Sorry, but you are looking for something that isn't here.","atahualpa"); ?></p>
Where is this code now?

I use Dunstan-sty Error Page plug-in for an enhanced 404 error message and need to change it to:
PHP Code:
<?php if ( is_404() ) {
if (
function_exists('afdn_error_page')) afdn_error_page();
?>
and to exclude posts of certain categories on the home page, I need to add:
PHP Code:
<?php if ( is_home() AND !is_paged() ) {
query_posts($query_string "&cat=-145,-420,-435");
?>
above the loop.

Where the best place to put this code in 3.4.2?

thanks,

Bill
  #2  
Old Jul 13, 2009, 11:48 AM
bcorrigan
 
85 posts · Feb 2009
I found the answer to my second question: ATO -> Content ABOVE the Loop.

Nice, now I don't have to make this edit at the next theme update.
  #3  
Old Jul 13, 2009, 11:52 AM
bcorrigan
 
85 posts · Feb 2009
...and I found the solution to my first question: ATO -> Content IF NOT FOUND

so I can now update and not have to edit theme php files any more!

Thanks Flynn!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
make index.php be a "page" and blog postings go to different php page zhidoni Atahualpa 3 Wordpress theme 0 Jun 21, 2009 05:25 PM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 03:16 PM
[SOLVED] Make top level page links inactive? BigG Page & Category Menu Bars 5 Jun 14, 2009 01:55 PM
[SOLVED] Where are the Pages I create in Atahualpa, stored on the file index configur Leoni Atahualpa 3 Wordpress theme 2 Jun 11, 2009 09:08 PM
How to not have Google index my sidebar data? gabrielnovo Atahualpa 3 Wordpress theme 5 May 6, 2009 07:46 AM


All times are GMT -6. The time now is 08:53 AM.


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