Glad to hear you figured it out, Cliff. I wonder why you added a new “ section to your page? A webpage should only have ONE section, and that is usually included in your theme’s code. Adding a new section could cause more problems than layout… it could result in SEO issues or worse.
The correct way to add code to the section of your website is by either editing the theme code, using a function to programmatically insert code, or use a plugin like: https://wordpress.org/plugins/header-footer/
Many themes, like Genesis, also include a field within the Theme Options to add code to your site’s or section.
At any rate, I’m happy you solved the visual issue. You just may want to double-check whether or not you’ve gone about it in the correct way.
Hope this helps!
Hi Shawn,
I added code to track the conversion rate for an ad campaign. Do I have to use the plugin or the other way?
Cliff
Hey Cliff,
Yeah, that’s what I suspected. So, whatever code snippet they provided to you for tracking the conversion rate needs to be [properly] added to the existing section. You don’t accomplish this by simply adding a new section to a page or post on your site.
Instead, you’ll want to add that snippet using one of the methods I suggested above.
First, check your theme options to see if there is a field for adding code snippets to your header or footer. I use a Genesis theme, which provides these fields in: Genesis > Theme Settings: https://cl.ly/1r2n0q1S0P36
If your theme does not include settings like this, you can accomplish the same thing by installing and activating a plugin like: https://wordpress.org/plugins/header-footer/
And finally, you can edit your theme files to manually add the code. BUT, that’s not the best idea, since your changes will be overwritten the next time you update your theme. Instead, I recommend one of the two methods above.
And, if you want to just hire someone to add the code snippet for you, reach out to the experts at Codeable, who are available to make small tweaks like this at very affordable rates: https://wp101.com/help/
Hope this helps!
Hi Shawn,
That is a great help.
I think the plugin insert the script into the header of all pages. It is fine for the general script. The specific event tracking script has to be in the header of a single page. Is there a way to do that.
Thanks,
OK, found SOGO Add Script to Individual Pages Header Footer to do the trick.