WordPress.org

Support

Support » How-To and Troubleshooting » [Help} Remove Post Info from above post

[Help} Remove Post Info from above post

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    live link?
    which theme?

    you’ll need to edit index.php of your theme…

    I had a look at index.php

    I removed:

    <p class=”txt0″><?php edit_post_link(‘Edit’, ”, ”); ?> // <?php the_time(‘F jS, Y’) ?> // <?php comments_popup_link(__(‘No Comments »’, woothemes), __(‘1 Comment »’,woothemes), __(‘% Comments »’,woothemes)); ?> // <?php the_category(‘, ‘) ?></p>

    Which is exactly what I want to get rid of but then it gives me a

    Error on line 1 when I refresh page with new index

    The only way to fix it back is to Upgrade WordPress from the control panel :S (re install it from user CP)

    Any ideas?

    The error:

    Fatal error: Call to undefined function get_header() in /home/lulzfact/public_html/index.php on line 1

    <?php get_header(); ?>
    
    	<?php if ( get_option('woo_home') == 'true' ) : include (TEMPLATEPATH . '/custom-home.php'); else : ?>
    
    	<div id="content">
    
    			<div id="main">
    
                    <h3 id="myWritings" class="replace"><?php _e('My Writings. My Thoughts.',woothemes); ?></h3>
    
    					<?php if (have_posts()) : ?>
    
    					<?php while (have_posts()) : the_post(); ?>
    
                        <div class="box1 clearfix">
                            <div class="post clearfix">
                                <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
                                <p class="txt0"><?php edit_post_link('Edit', '', ''); ?> // <?php the_time('F jS, Y') ?> // <?php comments_popup_link(__('No Comments »', woothemes), __('1 Comment »',woothemes), __('% Comments »',woothemes)); ?> // <?php the_category(', ') ?></p>
    
                            <?php the_content(__('<span class="continue">Continue Reading</span>',woothemes)) ?>
    
                            </div>
                        </div>
    
    					<?php endwhile; ?>
    
    					<div class="navigation nav clearfix">
    						<div class="fl"><?php next_posts_link(__('&laquo; Older Entries',woothemes)) ?></div>
    						<div class="fr"><?php previous_posts_link(__('Newer Entries &raquo;',woothemes)) ?></div>
    					</div>
    					<?php else : ?>
    
    					<h2 class='center'><?php _e('No posts found',woothemes); ?>.</h2>
    
    					<?php endif; ?>
    
                </div><!-- / #main -->
    
            <?php get_sidebar(); ?>
    
    	</div><!-- / #content -->
    
    	<?php endif; ?>
    
    <?php get_footer(); ?>

    Could anyone please edit this for me?

    Cheers

    Bump :S

    Moderator Michael

    @alchymyth

    Forum Moderator

    the index.php i was talking about is the index.php in your theme folder

    /wp-content/themes/woothemes/index.php
    (if ‘woothemes’ is the name of your theme)

    from the error message i assume that you uploaded the index.php after the changes to a wrong location, i.e. the root folder of your wordpress insatallation, overwriting one the neccesary, but different index.php of wordpress.

    i think your editing was ok.

    Worked THANKS ALOT!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Help} Remove Post Info from above post’ is closed to new replies.