Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Not reading functions.php

$
0
0

Replies: 0

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 11 minutes ago by kayo404.

Viewing all articles
Browse latest Browse all 59525

Trending Articles