WordPress Tutorial Videos by WP101®

175+ WordPress tutorial videos for non-techies.

  • About Us
    • Top WordPress Products
    • Testimonials
  • WordPress Tutorials
    • Intro to WordPress
    • WordPress 101
    • AIOSEO 101
    • WP Mail SMTP 101
    • Easy Digital Downloads 101
    • WPCode 101
    • WP Simple Pay 101
    • RafflePress 101
    • Elementor 101
    • WPForms 101
    • Spectra 101
    • How to Blog Better
    • WooCommerce 101
    • Beaver Builder 101
    • Ninja Forms 101
    • WP Rocket 101
  • Help Forum
    • Hire a WordPress Expert
  • Blog
  • Contact
  • Sign In

How to keep the <head> section and remove the space caused by the unwanted row?

Get answers to your WordPress questions!

Tired of wasting time scouring Google for answers to your WordPress questions? Since 2008, we've helped countless WordPress site owners just like you get unstuck. Get answers to your WordPress questions — plus unlimited access to our entire library of 150+ WordPress tutorial videos. Why not join us today?

View Membership Options
WordPress Questions and Answers › How to keep the <head> section and remove the space caused by the unwanted row?
0 Vote Up Vote Down
C
Cliff Han
asked 7 years ago
I added a <head></head> section to my page and the space between header and content increased due to a row was added without my knowledge. I don't see the row in text edit mode. It can only be seen with WPbakery Page Builder. If I remove the "empty" row, the <head></head> is gone. How to keep the <head> section and remove the space caused by the unwanted row?
1 Answers
0 Vote Up Vote Down
C
Cliff Han
answered 7 years ago
it has been solved with this: margin-top: -150px !important;
Shawn Hesketh replied 7 years ago

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!

C
Cliff Han
replied 7 years ago

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

Shawn Hesketh replied 7 years ago

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!

C
Cliff Han
replied 7 years ago

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,

C
Cliff Han
replied 7 years ago

OK, found SOGO Add Script to Individual Pages Header Footer to do the trick.

Please login or register to join the conversation!

Share this with someone?

FacebookTweetLinkedIn

Most Recent Questions

  • I took the Sprectra 101 course. Now I’m building my won web site but I still have the Specra Style Guide and I think it’s causing an issue with Sprectra One. How do I get rid of the Style guide? asked by Mallis01, 1 year ago
  • Can you offer any tips, or best practices, on how to redesign and upgrade an old website? asked by FSAuthor, 1 year ago
  • How to create a blog in Spectra? asked by TJ, 1 year ago
  • How do I make all the words show Uppercase? asked by iLoveToLiveWell.com, 1 year ago
  • Why does my right side dashboard top look different than course. asked by Blues1947, 2 years ago

Site Links

  • About Us
  • Your Account
  • Products We ❤️
  • Affiliates
  • Testimonials
  • Blog
  • Contact Us

Courses

  • WordPress 101
  • WooCommerce
  • Elementor
  • Spectra
  • WPForms
  • Ninja Forms
  • View All →

Products

  • WP101.com
  • WP101 Plugin
  • Embed our videos on your site!

Recent Posts

  • Best WordPress Order Form Plugins 2025 – Expert Review & Comparison
  • Find Your Ideal Domain Name: Best Registrars in 2025
  • MonsterInsights Review: Best Google Analytics Plugin for WordPress (2025)
  • WordPress SEO 101: Complete Beginner’s Guide in an AI Era
  • 13 Best Payment Plugins for WordPress Sites (Expert Review)

Connect with Us

  • Email
  • Facebook
  • Twitter

WordPress Tutorials by WP101© 2008-2025 WP101® LLC. All rights reserved.
WP101® is a registered trademark with the U.S. Patent and Trademark Office.
WP101® is hosted by SiteGround.
Privacy Policy | Terms of Use | Disclosure | WP101 Coupon