Title: Snippets?
Last modified: April 19, 2021

---

# Snippets?

 *  Resolved [oguido](https://wordpress.org/support/users/oguido/)
 * (@oguido)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/snippets-3/)
 * Hello, I’m trying to run a js code from a “Snippet”. in the snippets’ tag it 
   says that the shortcode should be [snippet_N] where N is a number from 1 to 5.
   Strangely enough the only snippet field available is named Snippet 6…?
    Anyway,
   if I try with [snippet_6] or [snippet_1] it still doesn’t work. The code i’ve
   added is: `$('body').on('touchstart', function() {});` but instead it only reads“[
   snippet_1]” or “[snippet_6]” in the front end. Can you help me please?

The topic ‘Snippets?’ is closed to new replies.

 * ![](https://ps.w.org/header-footer/assets/icon-256x256.png?rev=3452717)
 * [Head, Footer and Post Injections](https://wordpress.org/plugins/header-footer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [oguido](https://wordpress.org/support/users/oguido/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/snippets-3/)
 * Status: resolved