Skip to content

Instantly share code, notes, and snippets.

@mcallisto
Created April 28, 2023 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcallisto/f29a26729d12628567b87de0bfeb3245 to your computer and use it in GitHub Desktop.
Save mcallisto/f29a26729d12628567b87de0bfeb3245 to your computer and use it in GitHub Desktop.
Tweak for WordPress visualization
const attendees = document.getElementsByClassName("fooevents-attendee");
for (let i = 0; i < attendees.length; i++) {
const descriptions = attendees.item(i).getElementsByClassName("fooevents-variation-desc");
if (descriptions.item(0).innerHTML.includes("12")) {
const paragraphs = attendees.item(i).getElementsByTagName("p");
paragraphs.item(3).style.display='none';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment