Support » Theme: Simple Catch » Remove Google-fonts

  • Hi,

    Sorry my English is not very good,

    I want to remove “Google-font” of my theme is called from file
    “\themes\simple-catch\functions\simplecatch_functions.php”

    For this, I created a file function.php in child theme like this:

    <?php
    
    add_action('after_setup_theme','remove_fonction_parent');
    function remove_fonction_parent() {
       remove_action('wp_enqueue_scripts','simplecatch_load_google_fonts');
       add_action('wp_enqueue_scripts','fonction_enfant');
    }
    
    function fonction_enfant() {
       // Votre code perso ici
    }

    but it does not work

    So I tried to create a file
    /simple-catch-child/functions/simplecatch_functions.php and put the same code as above it does not work

    Can you tell me how to do that?

    thank you

  • The topic ‘Remove Google-fonts’ is closed to new replies.