How do I add the HTML tag using the Header Footer Code Manager?
The short answer is: After activating the Header Footer Code Manager plugin, you create a new snippet, name it, select ‘HTML’ as the type, set it to display site-wide, choose the header as the location, paste your HTML tag, and then save it.
Full Explanation
To add an HTML tag on your WordPress site using the Header Footer Code Manager plugin, you first need to activate the plugin. Once activated, you have access to the option to add new code snippets. This process allows you to insert custom HTML code effectively across your website.
Step-by-Step Breakdown
- Activate the Header Footer Code Manager plugin in your WordPress dashboard.
- Navigate to the ‘Add New Snippet’ section.
- Give your snippet a clear and recognizable name, such as ‘Pinterest’ or any descriptor relevant to your HTML tag.
- Set the snippet type to ‘HTML’ to specify that you are inserting HTML code.
- Choose the display location as ‘site-wide’ to ensure the HTML tag appears on all pages of your site.
- Select ‘Header’ for the location where the HTML will be embedded, which places your code within the header section of your site.
- Paste the HTML tag you want to add into the provided field.
- Click ‘Save’ to complete the process and apply the snippet across your site.
Real Examples
When adding an HTML tag, such as one for Pinterest verification, naming the snippet ‘Pinterest’ can help you easily identify the snippet later. Setting this snippet to display site-wide in the header ensures the HTML tag is loaded on every page, which is often necessary for verification or tracking purposes.
Common Mistakes
- Failing to activate the plugin before attempting to add snippets.
- Not naming the snippet clearly, which can cause confusion later.
- Choosing the wrong snippet type instead of ‘HTML’, which could prevent the code from executing correctly.
- Setting the snippet display incorrectly, like limiting it to just one page instead of the entire site if the tag requires site-wide application.
- Placing the HTML tag in the wrong location, such as footer instead of header, which might affect the tag’s effectiveness.
FAQs
Can I add multiple HTML tags using Header Footer Code Manager? Yes, you can add multiple snippets by repeating the process with different names and tags.
Will this affect my website’s performance? Adding HTML tags via this plugin usually has minimal impact when used properly.
Is it necessary to place the tag in the header? It depends on the tag’s instructions, but many verification or tracking tags require placement in the header.
Key Takeaways
- Activate the Header Footer Code Manager plugin before adding snippets.
- Name each snippet clearly for easy management.
- Use ‘HTML’ as the snippet type for adding HTML tags.
- Select ‘site-wide’ display and ‘Header’ location to ensure proper tag functionality.
- Save your snippet to apply the HTML tag across your website.