Guest User

Untitled

a guest
Sep 1st, 2025
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <script>
  2.  
  3. document.addEventListener("DOMContentLoaded", function() {
  4. // Selectăm toate blocurile .td_block_15 aflate în interiorul .single
  5. document.querySelectorAll(".single .td_block_15").forEach(function(block) {
  6. // Verificăm dacă NU există un element cu clasa .td-block-row în interior
  7. if (!block.querySelector(".td-block-row")) {
  8. block.style.display = "none";
  9. }
  10. });
  11. });
  12.  
  13.  
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment