Title: Text caption
Last modified: August 11, 2024

---

# Text caption

 *  Resolved [bing4](https://wordpress.org/support/users/bing4/)
 * (@bing4)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/text-caption/)
 * Hello.
 * How can we show text for each image always (to be visible not only on hover) ?
 * Also Is it possible to overlay image with some data from another shortcode (product
   price) ?
    -  This topic was modified 1 year, 9 months ago by [bing4](https://wordpress.org/support/users/bing4/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Zayed Baloch](https://wordpress.org/support/users/zayedbaloch/)
 * (@zayedbaloch)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/text-caption/#post-17947085)
 * Hi,
 * To make the text for each image always visible and not just on hover, you can
   use the following CSS:
 *     ```wp-block-code
       .twentytwenty-before-label,.twentytwenty-after-label {    opacity: 1;}
       ```
   
 * This CSS will ensure that the labels are fully visible at all times.
 * Unfortunately, the feature to overlay the image with data from another shortcode(
   like product price) is not available at this time.
 *  Thread Starter [bing4](https://wordpress.org/support/users/bing4/)
 * (@bing4)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/text-caption/#post-17947299)
 * Hello.
 * Thank you. Your code works great.
 * Is there a way to modify background color for text on shortcode ?
 * Also would be great to make 1 background for 1 text (1image) , another for 2.
   Is it possible ?
 *  Plugin Author [Zayed Baloch](https://wordpress.org/support/users/zayedbaloch/)
 * (@zayedbaloch)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/text-caption/#post-17947429)
 * You can use the same CSS class for the background, font color, font size, etc.
 * For the “Before” Image:
 *     ```wp-block-code
       .twentytwenty-before-label {    background-color: #336699;    color: #fff;}
       ```
   
 * For the “After” Image:
 *     ```wp-block-code
       .twentytwenty-after-label {    background-color: #ffcc04;    color: #000;}
       ```
   
 *  Thread Starter [bing4](https://wordpress.org/support/users/bing4/)
 * (@bing4)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/text-caption/#post-17947500)
 * Great👍Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Text caption’ is closed to new replies.

 * ![](https://ps.w.org/twenty20/assets/icon-256x256.png?rev=3241520)
 * [Twenty20 Image Before-After](https://wordpress.org/plugins/twenty20/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/twenty20/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/twenty20/)
 * [Active Topics](https://wordpress.org/support/plugin/twenty20/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/twenty20/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/twenty20/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [bing4](https://wordpress.org/support/users/bing4/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/text-caption/#post-17947500)
 * Status: resolved