Image caption showing on Home page post excerpt ... how to remove

Discussion in 'ReThink WordPress Theme' started by gloryous, May 7, 2015.

  1. gloryous

    gloryous Member

    Joined:
    May 25, 2012
    Messages:
    223
    Likes Received:
    8
    I've created a post with a captioned image. The text of the caption -- "Photo: Harry Caray in 1988" --shows up at the beginning of the post excerpt on the home page. It looks a little weird and out of place. Is there a way to not have the caption appear as part of the excerpt?

    http://demo777.digitalwordpower.com/

    Thank you.
     

    Attached Files:

  2. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello, Gloryous!

    For your information, the excerpt shows a limited numbers of words from the beginning of the post so it's not possible to just hide some of the word of the text.

    But don't worry!!!
    You can simply write the caption text inside <span> tag while creating the post so that we can apply some CSS on it and change the way it looks or hide it.

    Hope you got the point.

    Thanks,
    Praveen
     
  3. gloryous

    gloryous Member

    Joined:
    May 25, 2012
    Messages:
    223
    Likes Received:
    8
    Praveen!

    So the caption is actually part of the image within the media library ... not part of the post content itself. Are you saying I should be captioning it differently?

    Thank you!
    Glory
     
  4. gloryous

    gloryous Member

    Joined:
    May 25, 2012
    Messages:
    223
    Likes Received:
    8
    Praveen,

    I'm following up on this issue. I'm not sure I got your point. Can you please elaborate?

    Thank you,
    Glory
     
  5. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello,

    I would like you to know that - In home page we used PHP excerpt() function which treated all the text, heading, paragraph etc. as a content of post and it display them in a simple paragraph text. That's why, it merges the heading of the post with the other text and show them combined as the content of the post.

    But when you click on any post it open the post page and display in the same way as you have written while creating the post.

    Hope now I made it clear to you.

    Thanks,
    Praveen
     

Share This Page