WordPress.org

Ready to get started?Download WordPress

Forums

[Help} Remove Post Info from above post (8 posts)

  1. cellydy
    Member
    Posted 4 years ago #

    Hi!

    How can I remove

    "Edit // February 25th, 2008 // No Comments ยป // Uncategorized"

    from above all my blog posts?

    Picture Link:

    http://img689.imageshack.us/img689/2386/helpw.jpg

    Please Help me!

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    live link?
    which theme?

    you'll need to edit index.php of your theme...

  3. cellydy
    Member
    Posted 4 years ago #

    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?

  4. cellydy
    Member
    Posted 4 years ago #

    The error:

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

  5. cellydy
    Member
    Posted 4 years ago #

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

  6. cellydy
    Member
    Posted 4 years ago #

    Bump :S

  7. alchymyth
    Forum Moderator
    Posted 4 years ago #

    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.

  8. cellydy
    Member
    Posted 4 years ago #

    Worked THANKS ALOT!

Topic Closed

This topic has been closed to new replies.

About this Topic