Hi I’ve been working on a similar problem for a couple of days, I’m using Collapse o’Matic in a couple of cells in a table and I wanted different show/hide images for each cell in the row like so:
These are the [expand] shortcodes:
[expand title="<img src='https://localhost:8080/florapal/wp-content/uploads/2017/05/leaf-up.png' width='32'/>" swaptitle="<img src='https://localhost:8080/florapal/wp-content/uploads/2017/05/leaf-down.png' width='32'/>"]
[expand title="<img src='https://localhost:8080/florapal/wp-content/uploads/2017/05/book-closed.png' width='48'/>" swaptitle="<img src='https://localhost:8080/florapal/wp-content/uploads/2017/05/book1.png' width='48' />"]
After inserting the shortcodes I was still left with 2 images – the default up/down arrows and my new images, I cancelled the up/down arrows with the following css:
.collapseomatic {
background-image: url(https://localhost:8080/florapal/wp-content/uploads/2017/05/blank-transp.png) !important;
padding: 0 0 12px 24px;
}
.colomat-close {
background-image: url(https://localhost:8080/florapal/wp-content/uploads/2017/05/blank-transp.png) !important;
padding: 0 0 12px 24px;
}
where blank-trans.png is a transparent 57px by 57px square.
Hope this helps someone
David
-
This reply was modified 7 years, 6 months ago by blogdropper.