How to add HTML Code to Pages

How to add HTML Code to Pages

This article covers how to add HTML code that works in the header of all pages of the store's website.

This feature is useful for many things, including adding scripts and links for targeting pixels, campaigns, branding, and more.

Navigation

1. Log into the admin panel.

2. Navigate toContent>Design>Configuration


This will bring you to a new page where you have to select the right Design Configuration. 9 times out of 10 the correct Design Configuration to select is the one that has all the columns filled in.


Here is my example, the last row is the one that I want since it is associated with both a Store and Store View. 


3. Click on the "Edit" button under the action column.


4. Open the HTML Head section, and scroll down to the Scripts and Style Sheets input. You can enter any HTML code in this input.


5. Click the "SaveConfig" in the upper right.


Related Articles



    • Related Articles

    • How to Add Notices, Promotional Text, or Custom Scripts to Specific Pages with Widgets

      This article will guide you through setting up a notice, promotional text, or custom scripts to a specific page. For example, this article would be useful if you would like to add a banner or custom script on the cart or checkout page. This article ...
    • How To Upload Images In Magento 2 - Pages

      This article covers how to upload images for page use on a Magento store. TABLE OF CONTENTS Navigating to the Image Uploader Using the Image Uploader Using the New Image Navigating to the Image Uploader While editing content in Magento, there is an ...
    • How to Add Your Facebook Pixel

      This article will guide you through setting up your Facebook Pixel on Magento 2. This article will cover how to add the Facebook Pixel to all pages and to the order success page for conversions. Step 1: Adding Facebook Pixel to All Pages In the ...
    • How to Add/Modify Homepage Slideshow - Porto

      This article covers the basics of adding and modifying the slide contents on your homepage. Please note that this tutorial only applies to Porto Themes actively installed. Your slider(s) on the homepage is powered by a JQuery plugin calledOWL ...
    • An Introduction to HTML

      This article covers the basics of HTML, also known as HyperText Markup Language. Intro HTML is used to markup how to provide the structure to a web page. Most websites use HTML to define the basic structure of the content, use CSS to define the style ...