Location: site_wide_header
MemberPress: Change Username Field’s Placeholder and/or Label of the Field on Login Page
document.addEventListener(‘DOMContentLoaded’, function() { // Select the input element by its id var usernameInput = document.getElementById(‘user_login’); // Check if the element exists to avoid any potential JavaScript errors if (usernameInput) { // Change the placeholder text usernameInput.placeholder = ‘Username or Email’;…Continue reading
Untitled Snippet
MemberPress: Override ReadyLaunch Description For The Specific Payment Method on Click
jQuery(document).ready(function($) { // Listen for a click event on the payment method label $(document).on(‘click’, ‘.payment-option-paypal’, function() { // Change the text of the element within the specific payment method description var newText = ‘New text you want to display’; //…Continue reading
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
NextGEN Pro – Hide Ecommerce dashboard menu item
.toplevel_page_ngg_ecommerce_options { display: none !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 – Set pagination links as nofollow to exclude then from the sitemap
document.querySelectorAll(‘.ngg-navigation a’).forEach(link => { link.setAttribute(‘rel’,’nofollow’); });Continue reading
Soliloquy – Hide the caption’s shadow
const captionDivs = document.querySelectorAll(‘.soliloquy-caption-inside’); captionDivs.forEach(div => { if (div.textContent.trim() === ”) { div.style.display = ‘none’; }});Continue reading