A question about MORE quicktags
When using the <!–more–> quicktag in a post, I add it after about a paragraph. The post starts out with a large splash image. This image though is viewable on my blog index (which shows the last 10 full posts, unless the MORE quicktag is used).
Is there a way to make it so that the image only shows up when the MORE quicktag is clicked (viewing the full post), but not otherwise?
Maybe you can use CSS (display:none) or place the image after the more quicktag?
Well, if it’s placed after the quicktag, it isn’t displayed at the top of the post when you click MORE.
How would “display:none” work between the index and the MORE page with the full article?
If the image is not part of the post and you are adding it in the theme template files then you can use
is_single()(See Conditional_Tags for more info) to detect that you are on a single post page and display the image then.
hope this helps
Actually just found the solution with the coffee2code plugin Hide or Cut Post Text.
My next question is, when you click “MORE” – what file do I have to edit so that in the single post page, id doesn’t skip to the part of the post where the <!–more–> tag was inserted? I want it to navigate normally and show the top of the page (otherwise the plugin i just used is rather useless).
“[W]hat file do I have to edit so that in the single post page, id doesn’t skip to the part of the post where the <!–more–> tag was inserted?“
That will be difficult to achieve without hacking core WordPress files unfortunately. The more quicktag causes WordPress to generate a link to the post page with an anchor reference on the page. WordPress then puts the anchor in the post content automatically so that you carry on reading from where you got to.
- The topic ‘A question about MORE quicktags’ is closed to new replies.