Image Layout - Caption and Borders


My problem concerns the caption and border of displayed images. In WordPress administration view, when I write my post, it looks like this in the visual sight:

But If I take a look at the picture later in my published blog - It looks totally different, without any borders or formatted caption. Check e.g.

Is there anything I can change in my style.css to prevent these changes and make it look like exactly the administration view ? That would be of great help!!


Hi Friedrich,

I hope you are well to day and thank you for your question.

You can make it display same as shown in the attached screenshot by adding the following custom CSS code in the style.css file of your child theme or adding it in the Custom CSS (Advanced) theme option on the following path.

Admin Area -> Appearance -> Theme Options -> Other Tab -> Custom CSS (Advanced)

.wp-caption {
  background-color: #F3F3F3;
  padding: 5px 0 0 0;
  border: 1px solid #EAEAEA;
  text-align: center;
.wp-caption .wp-caption-text {
  border-bottom: 0;
  margin-bottom: 0;

Best Regards,
Vinod Dalvi