using: http://codex.wordpress.org/Function_Reference/the_content#Overriding_Archive.2FSingle_Page_Behavior
and the $strip_teaser parameter:
http://codex.wordpress.org/Function_Reference/the_content#Usage
in single.php, replace <?php the_content(); ?>
with:
<?php if( strpos(get_the_content(), '<span id="more-') ) : ?>
<div class="before-more">
<?php global $more; $more=0; the_content(''); $more=1; ?>
</div>
<?php endif; ?>
<?php the_content('', true); ?>
Related Posts:
- Hide/show content starting in the middle of a paragraph
- Ignore a more tag when using get_the_content()
- Woocommerce “read more” instead of “add to cart” [closed]
- Turning the read more link into a button [closed]
- How to use read more text
- read more doesn’t display
- Exclude the content before “the more” on single posts
- How to remove #more… from the post “More” link?
- Excerpt Is Disappeared
- WordPress adding a to my anchor for Read More
- Wrap More Link in Div
- Extra text… after read more tag
- How to change the “Read more” text?
- wordpress 3.8 do not have more button [closed]
- How to change the text generated by Tag
- “Read More” link not displaying
- What code in the WP Sinatra theme generates the words “Read More?”
- How to automatically add Read more section after the first paragraphe in post?
- create a read more link for post and archives
- Bad “read more” behavior, trying to fix by inserting tag
- Can’t Get the Read More function to work in the child theme
- Popup image from text
- Read More link, not visible on home page
- How to customize ‘read more’
- “Read More” button displays on individual Posts
- Read more link isn’t working with custom query
- Read More link scrolling page
- Read more content not displayed loops back to blog page
- why more tag is not working in my wordpress site
- Open source social media icons to download and use on website? [closed]
- How to make a monopoly board using css grid?
- What’s the difference between SCSS and Sass?
- CSS reset – What exactly does it do?
- When to use margin vs padding in CSS [closed]
- SVG center horizontal and vertical line
- Can I change Bootstrap button color?
- How am I supposed to use index.html?
- Is it bad practice to comment out single lines of CSS with //?
- Half circle with CSS (border, outline only)
- How to draw a half circle (border, outline only) [closed]
- CSS calc width and height values
- Column order manipulation using col-lg-push and col-lg-pull in Twitter Bootstrap 3
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- Adding border to SVG image
- What does !important mean in CSS?
- Failed to load resource: the server responded with a status of 404 (Not Found)
- Random gradient background color
- CSS Circle with border
- How to horizontally center an element
- Center image using text-align center?
- Unblur content inside blurring background div
- How do I make a transparent border with CSS?
- Failed to load resource: the server responded with a status of 404 (Not Found)
- Failed to load resource: the server responded with a status of 404 (Not Found) css
- How to change CSS using jQuery?
- Set line spacing
- See answer keys in Google Form (quiz) source page?
- CSS Background Opacity [duplicate]
- Remove blue underline from link
- Angular: conditional class with *ngClass
- CSS Background Opacity [duplicate]
- Outline effect to text
- Customize Bootstrap checkboxes
- Making a
- Converts scss to css [closed]
- React.js inline style best practices [closed]
- Remove class using jQuery
- What is a user agent stylesheet?
- Using two CSS classes on one element
- What is the difference between CSS and SCSS?
- What is a user agent stylesheet?
- How do I vertically align text in a div?
- Is there a CSS parent selector?
- Hide scroll bar, but while still being able to scroll
- CSS background-image-opacity?
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- Vertically align text within a div
- Resize image proportionally with CSS?
- Setting table column width
- How to align a to the middle (horizontally/width) of the page [duplicate]
- How do I vertically align text in a div?
- How to set a border for an HTML div tag
- Animate the overflow property
- How can I center text (horizontally and vertically) inside a div block?
- Set parent style via child
- Embed image in a
- What is the proper way to display a logo with CSS?
- Setting table column width
- Why does z-index not work?
- How do I vertically center text with CSS?
- Is there a color code for transparent in HTML?
- multiple classes on single element html
- CSS opacity only to background color, not the text on it?
- What is difference between png8 and png24
- Center image horizontally within a div
- Draw Circle using css alone [duplicate]
- How do I center floated elements?
- Failed to load resource: the server responded with a status of 404 (Not Found) css
- Why does z-index not work?
- How do I vertically center text with CSS?