tuanphan Posted September 25 Share Posted September 25 Suppose you want to add an icon like this to a corner of Gallery Section Images. #1. First, you need to find ID of Gallery Section. In my example, we will have: section[data-section-id="65e0ebffbf13c3601b617515"] #2. Next, use CSS code like this to Custom CSS box section[data-section-id="65e0ebffbf13c3601b617515"] figure.gallery-grid-item:before { content: ""; background-image: url(https://cdn.pixabay.com/photo/2020/02/11/10/24/sea-4839056_1280.jpg); background-size: contain; background-repeat: no-repeat; background-position: center center; width: 20px; height: 20px; position: absolute; top: 10px; left: 10px; z-index: 999999; } figure.gallery-grid-item { position: relative; } Replace Pixabay with your desired icon url. Follow this to find URL. #3. If you want to apply for all gallery grid images, you can use this new code figure.gallery-grid-item:before { content: ""; background-image: url(https://cdn.pixabay.com/photo/2020/02/11/10/24/sea-4839056_1280.jpg); background-size: contain; background-repeat: no-repeat; background-position: center center; width: 20px; height: 20px; position: absolute; top: 10px; left: 10px; z-index: 999999; } figure.gallery-grid-item { position: relative; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment