Hide Text throughout site
Hello,
I have several pages throughout a site that contain some text I would like to hide or remove. The text is:
Age Verification: No
Age Verification: Yes
I have tried the following. The first method doesn't do anything. The second works but on one one page it causes some issues with a select next to it: The select disappears and the text within just shows up as one long paragraph. (screenshots below).
Really would like to hide any instances of either of these text strings throughout entire site but right now doing it per page as I don't know how to do it any other way.
Thank you very much for your help!
Susan
- <script>
$('body').html($('body').html().replace('Verification',''));
</script>
- <script>
- $("td").text(function() {
return $(this).text().replace(/(Age Verification: No)/g, '');
});
</script>
Dropdowns Missing: