Head & Footer Code FAQ

Below you can find Frequently Asked Questions about the Head & Footer Code plugin.

Is supported PHP code in code snippets?

As it’s a security risk, the Head & Footer Code does not process PHP code if entered into any plugin field (global or article specific). Any content added to HFC fields is printed on the front-end as is.

I entered code to BODY section, but nothing outputs on front-end

This feature is implemented since WordPress version 5.2 and requires theme compatibility.

To make sure if the theme you use supports the wp_body_open hook, open in code editor header.php file from the theme you use, and check if right after opening tag there is the following code (if it does not exists, add it or ask some developer to do that for you):

if ( function_exists( 'wp_body_open' ) ) {

Back to Head & Footer Code page