What code in the WP Sinatra theme generates the words “Read More?”

There are a few copies of ‘Read More’ in the files. I think the one you want is in template-parts/entry/entry-summary-footer.php. However if you look at the code that includes this in content-blog-horizontal: if ( sinatra_option( ‘blog_horizontal_read_more’ ) ) { get_template_part( ‘template-parts/entry/entry-summary-footer’ ); } there’s already a config option ‘Show Read More Button’ to turn this … Read more

WordPress truncate posts question (plugin related)

This is a rather sloppily coded plugin, unfortunately. However, to answer your questions: Replace the function gopiplus_clean with this function gopiplus_clean( $excerpt, $length = 0 ) { $string = strip_tags( str_replace( ‘[…]’, ‘…’, $excerpt ) ); if ( $length > 0 ) { $words_array = preg_split( “/[\n\r\t ]+/”, $excerpt, $length + 1, PREG_SPLIT_NO_EMPTY ); $words … Read more