Graphique SimilarWeb :

Pour ajouter ce bloc, éditer le fichier functions.php de votre thème.
Menu "Apparence", "Éditeur" ou bien : /wp-content/themes/<votretheme>/functions.php
J'ajoute le code PHP :
Code : Tout sélectionner
// Nouveau Bloc SimilarWeb
echo '<iframe src="https://widget.similarweb.com/traffic/malekal.com" frameborder="0" width="450" height="200" style="border: solid 1px #D7D7D7;"></iframe>';
}
function wpc_add_dashboard_widgets() {
wp_add_dashboard_widget('wp_dashboard_widget', 'SimilarWeb', 'wpc_dashboard_widget_function');
}
add_action('wp_dashboard_setup', 'wpc_add_dashboard_widgets' );

Au final, le bloc apparait dans le tableau de bord WordPress
