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

Vertically center Instagram caption on hover

jQuery(window).on(‘sbiafterimagesloaded’, function (event) { $ = jQuery; $(‘.sbi_hover_top’).each(function(){ var $self = $(this); $self.css({ ‘position’ : ‘absolute’, ‘top’ : ( $self.parent().height() – $self.height() ) / 2 }); }); })Continue reading