tuanphan Posted September 20 Posted September 20 You can follow these steps to add a Sold dot/circle over Gallery Image, like this. #1. First, you can add a Gallery Section #2. Next, edit Gallery section > Enable Caption #3. Next, you add a SOLD text in the Description box #4. Use this code to Individual Page Header Injection (page where you use Gallery Image) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('figcaption p:contains("SOLD")').closest('figure').addClass('sold-dot'); }); </script> <style> figure.sold-dot>div { position: relative; } figure.sold-dot>div:after { content: ""; display: block; width: 30px; height: 30px; position: absolute; right: 20px; bottom: 20px; z-index: 9999; background-color: red; border-radius: 50%; } </style> #5. Result 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment