Have you found yourself trying to verify the ownership of your site, and you are asked to add an HTML tag to the head of your homepage? One way to add an HTML tag is by utilizing the Simple Custom CSS and JS plugin. This plugin offers a straightforward interface for adding custom CSS and JavaScript, but it also enables you to add specific HTML tags directly into the head of your homepage without the need to edit theme files.

With the Simple Custom CSS and JS plugin, adding or altering any element in the head becomes a safe and reversible process. Especially if you're not familiar with child themes or concerned about losing changes during a theme update, this method preserves your edits regardless of theme changes. Also, the plugin structures your custom additions in an organized manner, making future updates or removals uncomplicated and keeping your site's head section clean and precise.

Graphic of a silhouette of a person's head with <html> written inside it, to represent adding html code to the head of your wordpress site.

Understanding WordPress and HTML Basics

Overview of HTML in Web Development

HTML, or HyperText Markup Language, is the standard code used to create web pages. It structures the web content with elements represented by tags that browsers interpret to display content.

In a WordPress website, HTML is used in:

  • Pages and posts: where you write content.
  • Theme files: that shape the structure and style of your site.

Each page consists of a <head> section and a <body>. The <head> contains meta description information that's not displayed on the page but is critical for search engines and web browser compatibility, such as title tags and CSS/JavaScript files.

Add an HTML Tag to the Head of Your Homepage

Getting Started with the Simple Custom CSS and JS Plugin

To effectively add HTML tags to the header of your homepage in WordPress, the Simple Custom CSS and JS plugin is a straightforward option. 

Introduction to the Plugin

This plugin is a versatile tool that allows you to insert custom CSS and JS code into your WordPress site with ease. Whether you're looking to make small style adjustments with CSS or add functionality with JavaScript, the Simple Custom CSS and JS plugin has you covered. It bypasses the need to edit theme files directly, so that updates to your theme will not overwrite your custom code.

Installing and Activating the Plugin

Step 1: Log in to your WordPress admin panel.

Step 2: Navigate to the Plugins section on your dashboard.

Step 3: Click on Add New and search for Simple Custom CSS and JS.

Step 4: Locate the plugin in the search results, and click Install Now.

Step 5: After installation completes, click Activate to enable the plugin on your WordPress site.

Once activated, the plugin will be ready to use, and you can begin adding custom code to enhance the functionality and design of your homepage.

Using the Simple Custom CSS and JS Plugin Features

The Simple Custom CSS and JS plugin allows you to easily add HTML code for services like ads or affiliate links to the head of your site, including custom HTML, CSS, and JavaScript, by using custom code blocks.

Adding Custom HTML Block

Screenshot showing how to add an html block to the head of your homepage using Simple Custom CSS and JS plugin.

To insert a custom HTML block using the plugin:

  • Navigate to the Custom CSS & JS option in your WordPress dashboard.
  • Click on Add Custom HTML.
  • A code editor will appear where you can enter your HTML snippets.
  • After adding your HTML code, title your block for future reference.
  • Press the Publish button to save and activate your custom HTML block on your homepage.

Get your FREE Ultimate WordPress Cheat Sheet!

A 30 page guide to the WordPress dashboard

💡 Tips on uploading images, creating a menu and more

🚀 Definitions of common WordPress terms

🔧 List of common Gutenberg blocks and what they do

🔍 SEO and Security tips

Managing Added Scripts and Styles

To manage your scripts and styles:

  • Open the All Custom Codes list via the plugin menu.
  • You'll see a table with all your custom code blocks, which includes HTML, CSS, and JS snippets.
  • In this section, you have the option to:
    • Activate or deactivate snippets with a single click.
    • Editclone, or delete your code snippets using the corresponding actions.
  • Keep track of the activation status and the shortcode provided, which can be used to insert your snippets in specific locations on your page.

Embedding External Services like Facebook Pixel

To embed services like Facebook Pixel, you'll add the tracking code to the head of your homepage:

  1. Navigate to the Simple Custom CSS and JS plugin on your WordPress dashboard.
  2. Create a new JS snippet, opting for the header placement.
  3. Copy and paste the Facebook Pixel tracking code into the snippet.
  4. Save your changes to activate the tracking on your homepage.

This process will enable you to use services for analytics, social media tracking, and other marketing tools directly on your website.

Similar Posts


  1. This is good info. As a blogger, it’s tech issues like these that totally stump me. These instructions are easy to follow and understand.

Leave a Reply

Your email address will not be published. Required fields are marked *