Thank You! Thank You! Thank You! I was pulling hair out trying to fix this!
Catalin, it seems like we are running in circles here. Let’s take it back to square one. Will it help to let you know that my site is not live and if it crashes by putting the code in the wrong place it won’t matter?
I’m only asking for suggests of where to put the code in the header.php file. Forget about that fact that it hasn’t been tested. You’ve made that clear and I totally understand that. I’m only asking you to give me suggestions on where you “think” it should go. Remember you know how this theme operates. I don’t and neither does the owner of the plugin that I’m using.
So here goes…
This is the code in the header.php file:
<head>
<meta charset=”<?php bloginfo( ‘charset’ );?>” />
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php
wp_head(); /** we hook up in wp_booster @see td_wp_booster_functions::hook_wp_head */
?>
</head>
<body <?php body_class() ?> itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WebPage”>
This is the code that goes somewhere in the body tag above…
<?php do_action( ‘body_open’ ); ?>
Can you please just give me some suggestions of where it should go? Remember…I’m only asking for suggestions. I don’t care that it hasn’t been tested. Just need suggestions. If my site crashes I promise I won’t blame you. It’s not even live. So can I just get some suggestions this time please? I’d really appreciate it.
All that piece of code will do is load the GTA script from the plugin. All I need to know is where to put the that code in the template file where the header code is located. I understand that the plugin hasn’t been tested. That’s not what I’m asking. All I need to know from you or someone who knows anything about the theme is where in the theme file can I put this code that will load the GTA script. Since this is the forum for this theme that’s the very least someone within your support team should know.
Catalin, I asked a specific question about where should I put that code within the body tag in the screenshot you shared. Is it that you can’t tell me or you’re not sure where it goes? I really need a specific answer that doesn’t point to somewhere else. Because if you don’t know or can’t tell me I’d rather you tell me that so I can get help from someone who can point me in the right direction. Thanks.
Catalin, I have a question related to this. I’m using a GTM plugin called Metronet Tag Manager and it’s saying that I need to place this code right after the <body> tag…
<?php do_action( ‘body_open’ ); ?>
So with the screenshot you used earlier (https://www.screencast.com/t/CCTuAfdDuRTj), can you show me exactly where this code would go?
Thanks Simion! That is exactly what I was looking for!
Catalin, I wasn’t referring to just making links. I was referring to making links that jump to a specific section on the page. I was hoping to find out how it can be done by linking to a specific visual composure text block from a different page.
thanks. I’ll try that. I was wondering if there was some kind of built in way to link to a certain visual composure text block on the page.