Reduced Performance Due to functions.php
-
Hello
I am facing a very big issue since the update to version 3.
In my child theme, I have a functions.php file
with this basic code:<?php
/**
** activation theme
**/
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
// compter nombre commentaire
function wpb_comment_count() {
$comments_count = wp_count_comments();
$message = ‘Il y a ‘. $comments_count->approved . ‘
commentaire aprouvés.
';return $message;
}add_shortcode(‘wpb_total_comments’,’wpb_comment_count’);
//fin compter nombre commentaireWhen I check my website’s performance on Google Insights, it shows 79%. However, if I rename the functions.php file in my child theme, the performance goes back to 99%. But then my site looks completely messed up.
Thanks for your help.
The topic ‘Reduced Performance Due to functions.php’ is closed to new replies.
