Skip to main content
Format as a code block
Source Link
Rup
  • 4.4k
  • 4
  • 28
  • 29

I’m pulling my hair out. I have searched and searched for a way to remove the “Read More” link from my posts (full post, not excerpt). I’ve tried to add the filter below (and other pieces of code in functions.php) promoted in a number of places on the web. The filter works to turn the excerpt into a full-content post, but the same filter is also supposed to set the Read More text to null. Here’s what I’m using.

/**

  • Redefine sinatra_excerpt function.

*/ function sinatra_excerpt( $length = null, $more = null ) { the_content(); }

/**
 * Redefine sinatra_excerpt function.
 * 
 */
function sinatra_excerpt( $length = null, $more = null ) {
    the_content();
}

This function partially works in that it results in showing the full post rather than just an excerpt. it’s just the $more part that doesn’t work.

For what it’s worth, I have also tried various CSS examples until I’m blue in the face, most utilizing “display:none” on various elements.

I have searched the entire batch of files related to the Sinatra Theme for the string “Read More” and cannot find a single instance of it. If I could find that, I could just replace that with an empty string or otherwise alter the code. Does anyone know where it is?

Note: The posts are being generated on a Category page.

Thanks for any insight you may be able to provide.

I’m pulling my hair out. I have searched and searched for a way to remove the “Read More” link from my posts (full post, not excerpt). I’ve tried to add the filter below (and other pieces of code in functions.php) promoted in a number of places on the web. The filter works to turn the excerpt into a full-content post, but the same filter is also supposed to set the Read More text to null. Here’s what I’m using.

/**

  • Redefine sinatra_excerpt function.

*/ function sinatra_excerpt( $length = null, $more = null ) { the_content(); }

This function partially works in that it results in showing the full post rather than just an excerpt. it’s just the $more part that doesn’t work.

For what it’s worth, I have also tried various CSS examples until I’m blue in the face, most utilizing “display:none” on various elements.

I have searched the entire batch of files related to the Sinatra Theme for the string “Read More” and cannot find a single instance of it. If I could find that, I could just replace that with an empty string or otherwise alter the code. Does anyone know where it is?

Note: The posts are being generated on a Category page.

Thanks for any insight you may be able to provide.

I’m pulling my hair out. I have searched and searched for a way to remove the “Read More” link from my posts (full post, not excerpt). I’ve tried to add the filter below (and other pieces of code in functions.php) promoted in a number of places on the web. The filter works to turn the excerpt into a full-content post, but the same filter is also supposed to set the Read More text to null. Here’s what I’m using.

/**
 * Redefine sinatra_excerpt function.
 * 
 */
function sinatra_excerpt( $length = null, $more = null ) {
    the_content();
}

This function partially works in that it results in showing the full post rather than just an excerpt. it’s just the $more part that doesn’t work.

For what it’s worth, I have also tried various CSS examples until I’m blue in the face, most utilizing “display:none” on various elements.

I have searched the entire batch of files related to the Sinatra Theme for the string “Read More” and cannot find a single instance of it. If I could find that, I could just replace that with an empty string or otherwise alter the code. Does anyone know where it is?

Note: The posts are being generated on a Category page.

Thanks for any insight you may be able to provide.

Source Link

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

I’m pulling my hair out. I have searched and searched for a way to remove the “Read More” link from my posts (full post, not excerpt). I’ve tried to add the filter below (and other pieces of code in functions.php) promoted in a number of places on the web. The filter works to turn the excerpt into a full-content post, but the same filter is also supposed to set the Read More text to null. Here’s what I’m using.

/**

  • Redefine sinatra_excerpt function.

*/ function sinatra_excerpt( $length = null, $more = null ) { the_content(); }

This function partially works in that it results in showing the full post rather than just an excerpt. it’s just the $more part that doesn’t work.

For what it’s worth, I have also tried various CSS examples until I’m blue in the face, most utilizing “display:none” on various elements.

I have searched the entire batch of files related to the Sinatra Theme for the string “Read More” and cannot find a single instance of it. If I could find that, I could just replace that with an empty string or otherwise alter the code. Does anyone know where it is?

Note: The posts are being generated on a Category page.

Thanks for any insight you may be able to provide.