Code snippet in header is loaded in the frontend when I’m logged in
-
Hi. I’m trying to add a code snippet to the header using this plugin, but the code itself (window.suggestmeyes_loaded = true;) is displayed in the frontend when I’m logged in (but not for visitors).
Here is the code:
add_action( 'wp_head', function () { ?> window.suggestmeyes_loaded = true; <?php } );
I’m not a developper; so, I’m not sure if it is related to the plugin, the code syntax, or the theme. I’m using:
WordPress version: 6.1.1
Theme: GeneratePress 3.2.4
Code Snippets plugin: 3.3.0Thank you very much.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Code snippet in header is loaded in the frontend when I’m logged in’ is closed to new replies.