Lost frame around image caption after publishing (4 posts)

  1. Solarpower29
    Posted 6 years ago #

    The frame around the image was lost after publishing.
    I dont know is it about the theme. You can visit the post here.
    Can anyone help?

  2. jimtron
    Posted 6 years ago #

    Me too. I can see the caption frame in the edit post window, but it doesn't show up when published. And it used to work fine--I wonder if it could have anything to do with the 2.7 update?

    If anyone has any suggestions on how to fix this I'd love to hear them.

  3. jimtron
    Posted 6 years ago #

    OK, I just got my caption frames working again. I was reading this thread, which has the proper css code for captions. I copied that and added it to my theme's style.css file. I still don't understand what happened, as caption frames used to work fine with the same theme (Brodie), but it's working now.

    Here's the code (I just pasted this below the existing code in my theme's style.css file):

    .wp-caption {
    	border: 1px solid #ddd;
    	text-align: center;
    	background-color: #f3f3f3;
    	padding-top: 4px;
    	margin: 10px;
    	-moz-border-radius: 3px;
    	-khtml-border-radius: 3px;
    	-webkit-border-radius: 3px;
    	border-radius: 3px;
    .wp-caption img {
    	margin: 0;
    	padding: 0;
    	border: 0 none;
    .wp-caption p.wp-caption-text {
    	font-size: 11px;
    	line-height: 17px;
    	padding: 0 4px 5px;
    	margin: 0;
  4. IainPurdie
    Posted 6 years ago #

    Jimtron - just a quick "thank you" as I'd just spotted the same problem and that fixed it perfectly!

Topic Closed

This topic has been closed to new replies.

About this Topic