• Hi,
    I have a site that I have installed Contact Form 7 on, and on the developer site, there is a code that can be added to the functions.php to stop loading the contact form.

    My page with the contact form: https://kayove.no/kontakt/

    Themes:
    Active: GeneratePress Child – Version: 0.1
    GeneratePress – Version: 3.0.3

    Plugins installed:
    GP Premium
    Contact Form 7

    From the developer: https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/

    I have added this code in the functions in the child theme.

    GeneratePress Child: Theme Functions (functions.php)
    add_filter( ‘wpcf7_load_js’, ‘__return_false’ );
    add_filter( ‘wpcf7_load_css’, ‘__return_false’ );

    My page: https://kayove.no/kontakt/ still loads the contact form.

    Any idea why this is not working? I have not installed any caching plugins.

    • This topic was modified 4 years, 11 months ago by kayo404.

    The page I need help with: [log in to see the link]

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

The topic ‘Not reading functions.php’ is closed to new replies.