WordPress.org

Ready to get started?Download WordPress

Forums

A question about MORE quicktags (9 posts)

  1. jaero
    Member
    Posted 8 years ago #

    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?

  2. Class
    Member
    Posted 8 years ago #

    Maybe you can use CSS (display:none) or place the image after the more quicktag?

  3. jaero
    Member
    Posted 8 years ago #

    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?

  4. jaero
    Member
    Posted 8 years ago #

    Help, anyone?

  5. 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

  6. jaero
    Member
    Posted 8 years ago #

    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).

  7. Kafkaesqui

    Posted 8 years ago #

    "[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?"

    http://wordpress.org/support/topic/21155#post-120254

  8. 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.

  9. jaero
    Member
    Posted 8 years ago #

    Thanks for the help guys! Got it working perfectly now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags