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
- Customize Bootstrap checkboxes
- How can I center an absolutely positioned element in a div?
- Angular: conditional class with *ngClass
- CSS transition shorthand with multiple properties?
- How to center image in carousel
- CSS hover effect is not working on my code
- Using custom fonts using CSS?
- My CSS won’t link to my HTML file
- How to create a text box in PHP to output data
- Change an image with onclick()
- Why is my Bootstrap code not working?
- Place a button right aligned
- How to make canvas responsive
- td widths, not working?
- textarea’s rows, and cols attribute in CSS
- Disable SSL / HTTPS for wordpress
- Forcing reload of editor-style.css
- How can I make the wordpress editor apply the selected template?
- How to add ‘class’ attribute into shortcode [audio]?
- How to prevent loading of all plugin’s resources?
- Simple/basic use of get_current_screen
- Convert a static website to a WordPress theme and import all existing content
- How to add a body class to all interior pages except the homepage
- add a CSS id to the body of a page in wordpress
- Overwrite CSS with without deleting it
- Can I use theme options to change two things at once?
- How to remove google font in WordPress for only single page?
- Include print style sheet
- De-registering a CSS file leaves it in the queue
- Order of stylesheets in child theme
- Widgets Scripts don’t load – but load when I reload the page
- Hide widget (and white space) on specific resolution [closed]
- How does W3 Total Cache Load Images In Stylesheet via CDN? [closed]
- images within style sheet
- IE and WordPress
- Use PHP in stylesheet to specify a background image based on Category ID
- Override plugin styles via my custom theme
- Prioritize visible content – Page speed issue on Google insights
- How to create an optionally available stylesheet for visually impared users?
- how to add custom logo to my template
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- What’s the default order used by WordPress to load CSS files?
- Images under 1MB are not being compressed
- functions.php – inject inline css from file
- WordPress theme resource won’t load over VPN
- Changing navigation strip color with CSS
- Child theme not importing parent styles
- Issue Enqueueing WordPress style.css
- Applying CSS on PHP variable [closed]
- Page versus post ID specific CSS ID?
- Css will not display in webpage, after adding it in style.css in child theme
- How to change the WordPress Plugin Watson Assistant Chatbot BOX Size?
- Bootstrap Integtration
- function class doesnt work
- HTML not resizing
- Load multiple css simultaneously using functions.php
- How to get homepage div container of wordpress website to display full width? [duplicate]
- TwentyFourteen Theme : Changing grid layout
- Adding two same css class on menu item
- adding a favicon to site2 – site1/site2/favicon.ico
- wp add inline style in loop
- How to Hide Blog Post Author?
- Problem with ms-thumb-frame-selected class in Master Slider
- CSS messes up when CACHE is cleared
- Image is very blurry
- HTML to WORDPRESS [closed]
- WordPress update leads to 404 error on admin page and signup. CSS mishap with all plugin related functions
- Background color and background image below element in Contact Form 7 – error tip [closed]
- Grid problem on privew mode
- Disabling double vertical scrollbar and horizontal scrolling?