Title: add before closing body tag
Last modified: November 26, 2023

---

# add before closing body tag

 *  Resolved [sekedus](https://wordpress.org/support/users/sekedus/)
 * (@sekedus)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/add-before-closing-body-tag/)
 * What if the website doesn’t have a footer tag?
 * Can I add script just before the closing </body> tag?

Viewing 1 replies (of 1 total)

 *  [Muhammad Arslan](https://wordpress.org/support/users/wparslan/)
 * (@wparslan)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/add-before-closing-body-tag/#post-17231400)
 * Hey [@sekedus](https://wordpress.org/support/users/sekedus/)
 * Yes, You can add a script right before the closing of body tag for that you need
   to set the priority setting for the footer which you can find in Setting -> WP
   Headers and Footers -> Settings -> Footer’s Priority.
 * It will change the location where your scripts, Hope this helps.
 * Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘add before closing body tag’ is closed to new replies.

 * ![](https://ps.w.org/wp-headers-and-footers/assets/icon-256x256.png?rev=2265239)
 * [Insert Headers And Footers](https://wordpress.org/plugins/wp-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/)

## Tags

 * [footer](https://wordpress.org/support/topic-tag/footer/)

 * 1 reply
 * 2 participants
 * Last reply from: [Muhammad Arslan](https://wordpress.org/support/users/wparslan/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/add-before-closing-body-tag/#post-17231400)
 * Status: resolved