Well, the answer is simple:
Define( ‘CUSTOM_TAGS’, true };
You will then navigate over to functions.php and add this code:
The second way is to use the Advanced Custom Fields plugin. This plugin allows you to use custom fields without having to have a load of coding knowledge.
What you will do first is install and activate the plugin. You’ll notice “Custom Fields” has been added to your sidebar menu. You will click on “Custom Fields” and choose Custom Fields so you can add a new one. You will need to give the field group a name. From there, you set the rules that you desire. You can do such things as add a Header Script or Footer Script. Just make sure that formatting is set to “Convert HTML into Tags,” otherwise there may be some problems in the template.
If something goes wrong in the template, you will be able to go back and make changes to the plugin to fix the problem. Sometimes there is a little trial and error involved.
After you make your changes, you can add <?php the_field(‘header_script’): ?> to header.php in your theme directory. Make sure you place it before the </head> tag. You can then navigate to footer.php in your theme directory and enter <?php the_field(‘footer_script’); ?> before the </body> tag.
If you want to set the call in a specific spot, you can do so. For instance, you may want a certain function to be under the page title, so you would enter something like the code below, replacing “yourpage” with the file containing the function you need:
Best drag and drop website builder
Make responsive WordPress themes in minutes using TemplateToaster web design software
Build a Stunning Website in Minutes with TemplateToaster Website BuilderCreate Your Own Website Now