Adding a after_body Action to WordPress


So there are times that you would like to be able to add code directly after the body tag of a site.  WordPress unfortunately does not have this capability built into it.  So by modifying the the header.php file of your child theme you can easily give you the ability to add a code directly in that spot.

Then either in your plugin or within your functions file you can do the following.


Submit a Comment

Your email address will not be published. Required fields are marked *