How to remove 'read more' button
-
I’ve searched on all the old posts, but can’t seem to find how to tweak it for my site. I want to simply get rid of the ‘read more’ button on my blog, and allow for the whole post to show up on the blog page.
https://www.groovygentlemen.com/blog
here’s the content-featured.php code
<?php $postclass = is_singular() ? '' : 'postblog'; ?> <article id="post-<?php the_ID(); ?>" <?php post_class($postclass); ?> > <div class="entry"> <h2 class="posttitle"><a>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php if ( 'post' == get_post_type() ) : ?> <p class="postmeta"><small> <?php printf( __( 'Posted <span class="metadate">on %1$s</span> <span class="metaauthor">by %2$s</span>', 'primathemes' ), get_the_date(), '<a href="'.get_author_posts_url( get_the_author_meta( 'ID' ) ).'" title="">'.get_the_author_meta( 'display_name' ).'</a>' ); if ( comments_open() && ! post_password_required() ) : echo '<span class="metacomment"> / '; comments_popup_link( __( 'No comments', 'primathemes' ), __( 'One comment', 'primathemes' ), __( '% comment', 'primathemes' ) ); echo '</span>'; endif; edit_post_link( __( 'Edit', 'primathemes' ), ' / ', '' ); ?> </small></p> <?php endif; ?> <div class="postcontent"> <?php prima_image( array ( 'width' => 700, 'height' => 275, 'image_class' => 'featuredimage', 'link_to_post' => true ) ); ?> <?php the_excerpt(); ?> </div> </div> </article>
here’s the content-exceprt.php code
<?php $postclass = is_singular() ? '' : 'postblog'; ?> <article id="post-<?php the_ID(); ?>" <?php post_class($postclass); ?> > <div class="entry"> <h2 class="posttitle"><a>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php if ( 'post' == get_post_type() ) : ?> <p class="postmeta"><small> <?php printf( __( 'Posted <span class="metadate">on %1$s</span> <span class="metaauthor">by %2$s</span>', 'primathemes' ), get_the_date(), '<a href="'.get_author_posts_url( get_the_author_meta( 'ID' ) ).'" title="">'.get_the_author_meta( 'display_name' ).'</a>' ); if ( comments_open() && ! post_password_required() ) : echo '<span class="metacomment"> / '; comments_popup_link( __( 'No comments', 'primathemes' ), __( 'One comment', 'primathemes' ), __( '% comment', 'primathemes' ) ); echo '</span>'; endif; edit_post_link( __( 'Edit', 'primathemes' ), ' / ', '' ); ?> </small></p> <?php endif; ?> <div class="postcontent"> <?php the_excerpt(); ?> </div> </div> </article>
[Please use the code buttons when posting code – not the blockquote buttons – your code may have been damaged]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to remove 'read more' button’ is closed to new replies.