MemberPress: Override Description for All Payment Methods on Click

jQuery(document).ready(function($) { // Listen for a click event on the payment method label $(document).on(‘click’, ‘.mepr-payment-option-label’, function() { // Loop through all payment method description elements and update the text $(‘.mepr-payment-method-desc-text’).each(function() { var $this = $(this); var newText = ‘New text…Continue reading

Envira – fix for lightbox small image size in landscape mode

@media only screen and (orientation: landscape) { .envirabox-slide .envirabox-image-wrap{ width: auto !important; height: calc(100vh – 20px) !important; transform: translate(calc(100vh – 20px), 10px) !important; } .envirabox-image, .envirabox-spaceball{ width: auto !important; height: 350px !important; }}Continue reading

Soliloquy – Replace navigation icons with FontAwesome

.soliloquy-container .soliloquy-prev:before { content: “\f053”; /* FontAwesome icon for left arrow */ font-family: “Font Awesome 5 Free”; font-weight: 900; font-size: xx-large; color: red !important; } .soliloquy-container .soliloquy-next:before { content: “\f054”; /* FontAwesome icon for right arrow */ font-family: “Font Awesome…Continue reading

NextGEN Pro Ecommerce – Move the “Digital Downloads” items to the top of the list in the ecommerce sidebar.

jQuery(document).ready(function() { function executeJS() { jQuery(document).ready(function($) { var $h3 = $(‘#ngg_category_digital_downloads’).prev(‘h3’); var $targetElement = $(‘#ngg_category_digital_downloads’); var $newContainer = $(‘ ‘).append($h3).append($targetElement); $(‘.nggpl-pricelist_category_wrapper’).prepend($newContainer); }); } jQuery(document).on(‘ajaxComplete’, function(event, xhr, settings) { if (settings.url.indexOf(‘GetSidebarData’) !== -1) { executeJS(); } }); if (jQuery(‘#npl_wrapper’).hasClass(‘npl-sidebar-open’)) { executeJS();…Continue reading

NextGEN Pro [Ecommerce] Hide the empty cart (both WooCommerce’s and NextGEN”s)

function hideElements() { const noItemsElements = document.querySelectorAll(‘#ngg_pro_no_items’); noItemsElements.forEach((noItems) => { const proCheckout = noItems.closest(‘#ngg_pro_checkout’); if (proCheckout) { proCheckout.style.display = ‘none’; } }); const cartEmptyMessages = document.querySelectorAll(‘.wc-empty-cart-message’); cartEmptyMessages.forEach((message) => { const parent = message.closest(‘.woocommerce’); if (parent) { parent.style.display = ‘none’; }…Continue reading