//——————-France payment only————————- add_filter( ‘woocommerce_available_payment_gateways’, ‘allow_france_only’ ); function allow_france_only(...

Popup builder on scroll

Avec snippet is on screen if ($(‘.popup-click’).isOnScreen()) { if ($(‘.popup-click.hovered-yet’).length === 0) { var ls = localStorage.getItem(‘namespace.visited’); if (ls == null) {...

Redirection si version php

console.log(‘redirection selon version php’); $version = phpversion(); console.log($version); if ($version < 6){ //echo "inferieur a 6"; header(‘Location: index-front.php’); die(); } else { //echo "superieur a 6";...

Polylang FR | EN

JS $(‘.menu-item.lang-item-fr a’).text(‘FR’); $(‘.menu-item.lang-item-en a’).text(‘EN’); $(‘.menu-item.lang-item-fr’).append(‘ | ‘).append($(‘.menu-item.lang-item-en a’)); CSS...