Scroll Reveal JS (reference)

function scrollFunction() { if (document.body.scrollTop > 160 || document.documentElement.scrollTop > 160) { document.getElementById(“profile-bubble”).style.display = “inline-block”; } else { document.getElementById(“profile-bubble”).style.display = “none”; } } window.onscroll = function() {scrollFunction()};Continue reading

Tasty Pins – Remove the Pin button for an image by URL

(function(callback) { if (document.readyState !== “loading”) { callback(); } else { document.addEventListener(“DOMContentLoaded”, callback); } })(() => { let tp_exclusions = document.querySelectorAll(‘img[src=”https://example.com/wp-content/uploads/2023/12/logo.png”]’); if ( tp_exclusions.length === 0 ) { return; } for( const tp_exclusion of tp_exclusions ) { tp_exclusion.dataset.pinNopin = ‘nopin’;…Continue reading

Observe the Target Node Mutations (DOM)

// Options for the observer (which mutations to observe) const config = { attributes: true, childList: true, characterData: true, subtree: true, }; // Callback function to execute when mutations are observed const callback = (mutationList, observer) => { for (const…Continue reading

Additional Default Styling

.align-center { text-align: center; } .align-left { text-align: left; } .align-right { text-align: right; } .mobile-only { display: none; } .comment_container { padding: 1.5rem; background: #fff; box-shadow: 0 0 30px 30px rgba(0,0,0,0.05); } .no-padding-col .vc_column-inner { padding-left: 0 !important; padding-right:…Continue reading

footer

function remove_footer_admin () { echo ‘Fueled by WordPress | NYUFONEWS: UFO News ‘; } add_filter(‘admin_footer_text’, ‘remove_footer_admin’);Continue reading

My account + checkout + thank you page styles

.form-row.validate-required br, .woocommerce .tc-epo-metadata .tc-hidden-variation, .woocommerce-checkout-review-order .variation .tc-value>p br, .fee, .optional {display: none;}.woocommerce-account .woocommerce, .woocommerce-checkout .woocommerce {visibility: visible }.ec-login-item .woocommerce-privacy-policy-text {padding-block: 0 }.ec-thankyou-customer-form {–__form-gap: .25rem;flex-wrap: wrap;gap: calc(4 * var(–__form-gap)) var(–__form-gap) }.ec-thankyou-customer-form .form-row {margin: 0;flex-grow: 1;flex-basis: 100%;}.notes .input-text {min-height: 6rem;}.woocommerce-order-overview, .wc-item-meta…Continue reading