How To Add Custom Code In Magento 2 HTML Tag

In this post, I will guide you on How To Add Custom Code In Magento 2 HTML Tag. Setting HTML Head for your store corresponds to the tag of the HTML page.

When you use some services from third parties, they will ask for verification by inserting a piece of code in the tag. This is easy when you use Magento 2, you can insert it right in the admin panel easily.

In addition to the metadata for the page title, description, and keywords, this section also includes links to favorites and other scripts. Instructions for search engine robots and the display of store referrals are also configured in this section. And you can configure for each store view.

Steps To Add Custom Code In Magento 2 HTML Tag

1. Log in to Admin Panel.

2. On the Admin Panel sidebar, go to CONTENT > Design > Configuration.

On the Admin Panel sidebar, go to CONTENT Design Configuration

3. Find the store view that you want to configure and, in the Action column, click Edit.

Select the store view that you want to configure

4. On the Other Settings tab, expand the HTML Head section.

Expand the HTML Head section

5. Add your custom code to the Scripts and Style Sheets field.

Add your custom code to the Scripts and Style Sheets field

6. When complete, click Save Configuration button.

This is the end of the post.

Follow us for the more helpful posts!

We hope this is a useful post for you How To Create New CMS Block In Magento 2.

Thank you for reading!

4.7 3 votes
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x