Abiola
Forum Replies Created
-
Hello @wpmudev-support9,
Thanks a lot, this ‘Make sure to set the conditions to Show when Any’ worked. It was on ‘Show when All’.
Best regards.
Abiola.Please, I need help with the plugin on my site too, https://www.deldatavtu.com. Hustle doesn’t seem to work. @wpmudev-support6 @wpmudev-support9
Forum: Themes and Templates
In reply to: [Customizr] Google Tag Manager Container SnippetYes, I tried writing it there and other places, but the site kept showing:Parse error: syntax error, unexpected ‘<‘ in /home/dcloud/public_html/wp-content/themes/twentyeleven/functions.php on line 8 (or every other line I place the script).
Forum: Themes and Templates
In reply to: [Customizr] Google Tag Manager Container SnippetI think I have gotten it.
I placed it under ‘header.php’ file after the body tag. I had to copy the file into the child theme in case of any update to the parent theme. This took me a while but I’m happy to have learn.
But why was I not able to place the javascripts in functions.php?
Forum: Themes and Templates
In reply to: [Customizr] Google Tag Manager Container SnippetThanks for your response Nikeo!
I pasted the code into the theme’s child functions.php but my site had Parse error: syntax error, unexpected ‘<‘ in /home/dcloud/public_html/wp-content/themes/twentyeleven/functions.php on line 8.
I read somewhere that I need to remove the
if ( !defined( 'ABSPATH' ) ) exit;...if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
In fact here’s what the child theme look like
<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: if ( !function_exists( 'chld_thm_cfg_parent_css' ) ): function chld_thm_cfg_parent_css() { wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css' ); } endif; add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css' ); // END ENQUEUE PARENT ACTION
I actually created this using your free theme.
My question: where do I add the Google Tag Manager Container Snippet Code (javascript) in the above?
Forum: Fixing WordPress
In reply to: You are currently editing the page that shows your latest posts.The solution is to go to settings>reading>and under post page select another page.
It’s actually showing that message because that’s the page your posts go to. It’s just an message.