Snippets , WOO
//——————-France payment only————————- add_filter( ‘woocommerce_available_payment_gateways’, ‘allow_france_only’ ); function allow_france_only(...Snippets , WP
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) {...Snippets
1/ https://www.smartwebsolutions.org/replace-space-with-hyphen/ 2/ http://www.unit-conversion.info/texttools/remove-letter-accents/php , Snippets
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";...Javascript , Snippets
$(‘#collection .et_pb_slide_0’).find(‘h2’).replaceWith(function() { return ‘<h1>’ + $(this).text() + ‘</h1>’; });Snippets , WP
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...