Javascript to specific template page

What if I’m just trying to fire script on all posts. Not pages, just blog posts.

This doesn’t seem to do the trick…?

'post_type_archive_post': {
  init: function() {
    // JavaScript to be fired on all Posts
  }
}
1 Like

Did you check to see what the classes are on the body tag? That should give you some ideas

1 Like