If you add an image with a caption to an accordion toggle, you get a background for the image which has the same color as the closed toggle. That doesn’t look nice. This CSS removes the background and border from the image.
/* -- Remove image background in Accordion Toggle -- */
.et_pb_accordion .wp-caption {
background-color: rgba(255,255,255,0);
border: 0px;
}Code language: CSS (css)