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.
3. Find the store view that you want to configure and, in the Action column, click Edit.
4. On the Other Settings tab, expand the HTML Head section.
5. 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!