How can I remove that readmore button on my site (wordpress)?
the_content( __( 'Read more →', 'ward' ) );
How can I remove that readmore button on my site (wordpress)?
the_content( __( 'Read more →', 'ward' ) );
You must be logged in to post a comment.
Better to do with a filter – that way you do not need to change all the theme´s files and search for the specific code ..
and use
add_filter('excerpt_more', 'my_more_link');
for excerpts in much the same wayTry replacing
the_content( __( 'Read more →', 'ward' ) );
With:
the_excerpt();
Or you can use CSS
display:none;
on the element to hide it.better filter.
This will probably disable all.. not tested yet ..
From the Codex (http://codex.wordpress.org/Customizing_the_Read_More):
<?php the_content( $more_link_text , $strip_teaser ); ?>
The $more_link_text sets the link text like “Read More”. The second one, $strip_teaser, sets whether or not the “more” link should be hidden (TRUE) or displayed (FALSE). The default is FALSE, which shows the link text.
To remove the teaser:
Change the_content(); in your index.php to (i.e., the second parameter controls this):
the_content('',FALSE,'');