Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5803

    In index.php and archive.php, I changed <?php the_excerpt() ?> To <?php the_content(); ?>

    but my posts on main page still shows “Read More”. How do i get rid of that?

    Also, in each individual post – how do I remove the “author” info at the end of each post and all the social media icons? I want the comment boxes as soon as the post ends.

    #51801

    Hey,

    1) In archive.php/index.php delete:

    <a href="<?php echo get_permalink() ?>" class="more-link"><?php _e('Read more','newscast'); ?></a>

    2) In single.php delete:

    <div class='entry' id="author-box">
    <div class="gravatar">
    <?php
    $author_email = get_the_author_email();
    echo get_avatar( $author_email, $size = '60');
    the_author_posts_link();
    ?>
    </div>
    <div class="author-info">
    <h3><?php _e('About the author','newscast'); ?></h3>
    <?php
    $description = get_the_author_description();
    if($description != '')
    {
    echo $description;
    }
    else
    {
    _e('The author didnt add any Information to his profile yet','newscast');
    }

    ?>
    </div>
    </div>

    <div id='social_icons'>
    <ul>
    <li><a class='ie6fix twitter' href="http://twitter.com/home/?status=<?php _e('Currently reading ','newscast'); the_title(); echo ': '; the_permalink(); ?>">Twitter</a></li>
    <li><a class='ie6fix fb' href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>">Facebook</a></li>
    <li><a class='ie6fix stumble' href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">StumbleUpon</a></li>
    <li><a class='ie6fix digg' href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?>">Digg</a></li>
    <li><a class='ie6fix techno' href="http://www.technorati.com/faves?add=<?php the_permalink(); ?>">Technorati</a></li>
    <li><a class='ie6fix deli' href="http://del.icio.us/post?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">Delicious</a></li>
    </ul>
    </div>

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Remove "Read More"…’ is closed to new replies.