Category : wordpress

i want to click a radio element automatically with js. Element selection is perfect because when i try to change it with innerHTML, it changes but click() does not work. If i remove DOMContentLoaded then it says can’t read property of NULL. Code: document.addEventListener("DOMContentLoaded", function(){ document.querySelector(".jet-radio-list__label").innerHTML = "Changed!" document.querySelector(".jet-radio-list__label").click() } Tried Alternatives like: document.querySelectorAll(‘input[type="radio"]’).checked = ..

Read more

I’ve successfully hidden "Affirm" payment gateway for a specific product on the checkout Page. But the affirm Option still visible in the Cart Page. How to hide this if a specific item is in the cart? The content is located in p#learn-more.affirm-as-low-as block if that’s useful. Screenshot <p id="learn-more" class="affirm-as-low-as" data-amount="32500" data-affirm-color="blue" data-learnmore-show="true" data-page-type="cart">Starting at ..

Read more

I would like to run a script on button, it will first submit the data and then refresh the page. Bewlo is the script I am using but it is only refreshing the page but not submitting the data. <button type="submit" class="button" name="update_cart" onClick="window.location.reload();" value="<? php esc_attr_e( ‘Update cart’, ‘woocommerce’ ); ?>"><?php esc_html_e( ‘Update cart’, ..

Read more

I have a website in wordpress and I need to redirect specific urls, I think it can be done with the .htaccess or through php code or javascript. Pay attention: My site creates listings that are like post as follows: https://agents.nzschoolinfo.com/school/remuera-intermediate-school/ I need all urls to be redirected like this: https://nzschoolinfo.com/ko-kr/school/remuera-intermediate-school/ Just to be clear. ..

Read more