Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

messed up the code on Main Index template


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 1, 2012, 06:23 PM
demik3
 
3 posts · Apr 2012
and now I broke my blog.

I had added some code for Yoast breadcrumbs and when I removed them I must have messed something up.

Here is what the code looks like now-



<?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);
?>

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] = 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>
<?php bfa_widget_area('name=My widget area1'); ?>
<?php // Deactivated since 3.6.5
# include 'bfa://content_above_loop';
// Uses the following static code instead: ?>
<?php bfa_next_previous_page_links('Top'); // For MULTI post pages if activated at ATO -> Next/Previous Navigation: ?>
<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>

<?php // Deactivated since 3.6.5
#include 'bfa://content_inside_loop';
// Uses the following static code instead: ?>
<?php bfa_next_previous_post_links('Top'); // For SINGLE post pages if activated at ATO -> Next/Previous Navigation ?>
<?php /* Post Container starts here */
if ( function_exists('post_class') ) { ?>
<div <?php if ( is_page() ) { post_class('post'); } else { post_class(); } ?> id="post-<?php the_ID(); ?>">
<?php } else { ?>
<div class="<?php echo ( is_page() ? 'page ' : '' ) . 'post" id="post-'; the_ID(); ?>">
<?php } ?>
<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>
<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
</div><!-- / Post -->

<?php endwhile; ?>

<?php // Deactivated since 3.6.5
# include 'bfa://content_below_loop';
// Uses the following static code instead: ?>
<?php bfa_next_previous_post_links('Middle'); // Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: ?>
<?php bfa_get_comments(); // Load Comments template (on single post pages, and static pages, if set on options page): ?>
<?php bfa_next_previous_post_links('Bottom'); // Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: ?>
<?php bfa_archives_page('<div class="archives-page">','</div>'); // Archives Pages. Displayed on a specific static page, if configured at ATO -> Archives Pages: ?>
<?php bfa_next_previous_page_links('Bottom'); // Displayed on MULTI post pages if activated at ATO -> Next/Previous Navigation: ?>

<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php // Deactivated since 3.6.5
#include 'bfa://content_not_found';
// Uses the following static code instead: ?>
<h2><?php _e('Not Found','atahualpa'); ?></h2>
<p><?php _e("Sorry, but you are looking for something that isn't here.","atahualpa"); ?></p>

<?php endif; /* END of: If there are no posts */ ?>

<?php get_footer(); ?>


***********************
Here's a bit of a screenshot of where I removed the bread crumb code, though not a good one.






Where did I mess up and what can I do to fix it? Let me know if anything else is needed, it's my first post.

Thank you,
Dawn
  #2  
Old Apr 1, 2012, 06:32 PM
juggledad's Avatar
juggledad
 
21,712 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
To get the log back, download a fresh copy of atahualpa to your computer, unzip it.
Next connect to your host with FTP and rename the index.php file in the Atahualpa folder to 'old index.php' and then upload the fresh copy.

This should get you running again.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Apr 1, 2012, 07:15 PM
demik3
 
3 posts · Apr 2012
Thank you! That worked, although while doing that I have found my site was hacked and they inserted a silence is golden css code that is causing my site to not been seen. I guess it wasn't me changing the code just a coincidence. Now to figure how to get my site back up.
  #4  
Old Apr 1, 2012, 07:22 PM
lmilesw's Avatar
lmilesw
 
9,973 posts · Jul 2009
Central New York State USA
Also the Yoast breadcrumbs plugin hasn't been updated on over two years. I would be a bit cautious with it.
__________________
~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 Apr 1, 2012, 07:46 PM
demik3
 
3 posts · Apr 2012
Thanks Larry. I was using the Wordpress SEO plugin by Yoast which I liked except it caused all but one of my sidebar widgets not to appear. The breadcrumbs were part of that plugin.
  #6  
Old Apr 1, 2012, 08:41 PM
lmilesw's Avatar
lmilesw
 
9,973 posts · Jul 2009
Central New York State USA
Ok... I see that the SEO plugin has superseded the breadcrumb plugin. I use the SEO plugin and have never had the issue with the sidebars. I would check all the settings.
__________________
~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.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help with Main Index Template Code jdv Plugins & Atahualpa 0 Mar 4, 2011 03:52 PM
[SOLVED] mootools error code=0 on ie only --&gt; messed-up layout and buttons mppc Plugins & Atahualpa 7 Mar 1, 2011 08:32 AM
remove Read More: TITLE from the main index dpace32 Excerpts, Read more, Pagination 1 Dec 9, 2010 10:23 PM
My index file is messed up... please help! plzhelp Installing & running WordPress 4 Aug 4, 2009 04:14 AM


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


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