How to Prevent Picture Caption of Appearing as First Text of Content?

7 replies
  • WEB DESIGN
  • |
Hi guys and gals

I'm using a WP theme that's all fine and dandy except for the fact the picture caption shows up as the first text on the home page post excerpts.

The result is that the first sentence you see doesn't make sense, has tow capitalized letter, etc.

As I'm submitting this site for human review, it needs to be top notch.

I've taken out all wp-caption blocks from the styles.css and I still get this!

I've deactivated plugins, nope.

With grepWin (what a good tool!), I've located all the actual "caption" elements in the theme code so it's named something else.

BTW I do NOT want to take out captions all together from the site, just preventing them for appearing as text part of the post content on the home page.

If anyone knows, I'm all hears!

Thanks!
#appearing #caption #content #picture #prevent #text
  • Profile picture of the author esmconcepts
    My first thought would be you have multiple entries trying to add the text caption for the images. What theme are you using. Can you list the websites we could take a look at it.

    When you list the post in the HTML view you see anything there that might cause the caption to be misplaced?
    Signature
    {{ DiscussionBoard.errors[2909383].message }}
  • Profile picture of the author Jay Rhome
    The theme I'm using is
    Channel
    (I do take out some elements, but bottom line that's the theme)

    The html code of a post looks like this:
    [caption id="attachment_2277" align="alignleft" width="150" caption="staples_center"]<a href="http://url.com/wp-content/uploads/2010/11/staples_center1.jpg"><img src="http://url.com/wp-content/uploads/2010/11/staples_center1-150x150.jpg" alt="" title="staples_center" width="150" height="150" class="size-thumbnail wp-image-2277" /></a>[/caption]

    The thing is, as an individual post, it's fine. The caption is below the pic. It's on the HOME page, that the caption shows as part of the text content of the post.

    I checked the functions.php, index.php, and styles.css files, yet seen nothing that works yet.

    Thanks
    {{ DiscussionBoard.errors[2909490].message }}
  • Profile picture of the author esmconcepts
    Is the thumbnail controlled through a separate interface inside of your admin? When you enter the image information on your post page doesn't offer an image upload selection as well as a thumbnail entries?

    If you remove the caption for the image what happens?

    align="alignleft" / did you enter the online left control? Could this be pushing the caption out of position if the thumbnails are controlled by the theme.
    Signature
    {{ DiscussionBoard.errors[2909547].message }}
    • Profile picture of the author Jay Rhome
      Originally Posted by esmconcepts View Post

      Is the thumbnail controlled through a separate interface inside of your admin?
      I use the "add image" options from the WP editor

      When you enter the image information on your post page doesn't offer an image upload selection as well as a thumbnail entries?
      I'm not sure I get your question but I'd say yes

      If you remove the caption for the image what happens?
      There is simply no caption anymore (obviously, I mean nothing else seeems to happen).

      align="alignleft" / did you enter the online left control? Could this be pushing the caption out of position if the thumbnails are controlled by the theme.
      I only selected the option while adding the picture.

      It's weird how something seemingly so simple can be such a PITA!
      {{ DiscussionBoard.errors[2909614].message }}
  • Profile picture of the author esmconcepts
    When I go to the Channel demo site I see the first Thumbnail post "The Swift-West Spectacle, Stoked on Screen "

    It has a float:left; built into the CSS file for the <div class="thumbnail"> and then shows the Admin // date under the Title of the post with the image set to the top-right.

    I don't think a "Caption" would show other than inside the post its -self. Because it is controlled by the Class Thumbnail.

    You might try adding a new dummy post with out any extra info for the image and see what happens. I guess the newest post go to the top and then older ones drop-down to the short / thumbnail versions.
    Signature
    {{ DiscussionBoard.errors[2909755].message }}
  • Profile picture of the author Jay Rhome
    If I don't add a caption while adding the pic, I have no issues... but no captions either.

    Oh well, don't know what I'll do now. For some reason, the caption is important for the reviewer. Don't know why, but it is what it is.

    BTW thanks for all your help
    {{ DiscussionBoard.errors[2909804].message }}
  • Profile picture of the author esmconcepts
    Could you embed the caption in the image and then post it as one unit.
    Signature
    {{ DiscussionBoard.errors[2909848].message }}

Trending Topics