This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Etes vous d'accord ?<span class="asterisk">*</span> | |
[select* your_redirect_page include_blank "Oui" "Non"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Contact form7 fonction de redirection | |
* A ajouter à votre fichier function.php de votre thème enfant | |
*/ | |
function cf7_redirectionl() { | |
?> | |
<script type="text/javascript" id="cf7-redirection"> | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
// changer l'ID par votre ID de formulaire de contact | |
// ID visible dans le lien vers votre formulaire dans l'adrministration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Exemple de code pour utiliser Really Simple Captcha avec CF7 | |
[captchac captcha-1 size:m fg:#363636 bg:#ffffff] [captchar captcha-1 watermark "Recopiez le code ici"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// exemple de code à insérer dans vos formulaires CF7 afin d'utiliser Akismet | |
[text* your-name akismet:author watermark "Nom et Prénom"] | |
[email* your-email akismet:author_email watermark "Adresse Email"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Merci à Garconis : https://gist.github.com/Garconis/34b6be24ee644c024663ef1d2e11e2bb | |
// Supprime extra_add_viewport_meta du wp_head | |
function remove_extra_actions() { | |
remove_action( 'wp_head', 'extra_add_viewport_meta' ); | |
} | |
// Appel de 'remove_divi_actions' pendant l'initialisation de WP | |
add_action('init','remove_extra_actions'); | |
// Ajout du nouveau pinch et zoom avec le maximum-scale à 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Merci à Garconis : https://gist.github.com/Garconis/34b6be24ee644c024663ef1d2e11e2bb | |
// Supprime et_add_viewport_meta du wp_head | |
function remove_divi_actions() { | |
remove_action( 'wp_head', 'et_add_viewport_meta' ); | |
} | |
// Appel de 'remove_divi_actions' pendant l'initialisation de WP | |
add_action('init','remove_divi_actions'); | |
// Ajout du nouveau pinch et zoom avec le maximum-scale à 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function snippet_remove_rel() { | |
?> | |
<script type="text/javascript" id="seo-title-link"> | |
jQuery(document).ready(function($) { | |
var $this = $(this); | |
var $items = $this.find('a.la_classe_css'); | |
$items.removeAttr('rel'); | |
}); | |
</script> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function snippet_javascript() { | |
?> | |
<script type="text/javascript" id="seo-title-link"> | |
jQuery(document).ready(function($) { | |
jQuery(".et-pb-arrow-prev").prop('title', 'Précédent'); | |
jQuery(".et-pb-arrow-next").prop('title', 'Suivant'); | |
}); | |
</script> | |
<?php | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hook_glink_footer() { | |
?> | |
<script type="text/javascript" id="remove-by-class"> | |
jQuery(document).ready(function($) { | |
jQuery(".la_class_a_supprimer").remove(); | |
}); | |
</script> | |
<?php | |
} | |
add_action('wp_footer', 'hook_glink_footer', PHP_INT_MAX ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// création d'un Shortcode pour afficher la date en français de la dernière modification d'un site WordPress. | |
// ajoutez ensuite simplement le shortcode [lastupdatedate] à votre widget ou footer | |
function last_update(){ | |
global $wpdb; | |
$wpdb->query("SET NAMES 'utf8', lc_time_names = 'fr_FR'"); | |
$last_updates = $wpdb->get_results("SELECT DATE_FORMAT(MAX(post_modified), '%W %d %M %Y') as date_maj FROM $wpdb->posts WHERE | |
(post_type='post' AND post_status='publish') OR ( post_type='page' AND post_status='publish')"); | |
foreach ($last_updates as $last_update){ | |
return $last_update->date_maj; |
NewerOlder