• 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 commentaire

    When 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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @flexi2202,

    Thanks for reaching us,

    In order to better assist you, could you please provide us with the URL of your website? Once we have the URL, we’ll be able to investigate the problem and provide you with a more accurate solution.

    Regards

    Thread Starter flexi2202

    (@flexi2202)

    Hello, Thank you for your response. After conducting numerous tests, my issue revolves around the site icon. When I enable it, my performance decreases, but when this icon is disabled, everything works fine.

    Here is the link to my website: https://pecheperle.be/

    Hi @flexi2202,

    Thanks for the site link,

    We will try replicating the issue on our end and if this is an issue caused by the theme, it will be fixed with the upcoming version of the theme released.

    Likewise, if we found any alternative solution to it, we will make sure to provide you with it asap.

    Let us know if you have any issues or queries after using the latest version of the ColorMag theme and we will get back to you.

    Regards

    Thread Starter flexi2202

    (@flexi2202)

    I’m checking for updates regarding my issue.

    Hi @flexi2202,

    Thanks for reaching us,

    The issue with the speed of the site performance has already been assigned to the developer team. Hopefully with the upcoming version of the theme released, the issue will be fixed on your end.

    Let me know of any other issues or confusion and I will get back to you.

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Reduced Performance Due to functions.php’ is closed to new replies.