Title: Enqueue script to show single post
Last modified: August 30, 2016

---

# Enqueue script to show single post

 *  [Modern DaDa](https://wordpress.org/support/users/sam202120/)
 * (@sam202120)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enqueue-script-to-show-single-post/)
 * How would you enqueue a script in a theme that you only want to show on the blog
   and single posts?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [prosperstudios](https://wordpress.org/support/users/prosperstudios/)
 * (@prosperstudios)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enqueue-script-to-show-single-post/#post-6744515)
 * Put it in the Template file of the Theme.
    There’s a page there called single.
   php. Also, a page called post.php.
 * Put your scripts there.
 *  Thread Starter [Modern DaDa](https://wordpress.org/support/users/sam202120/)
 * (@sam202120)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enqueue-script-to-show-single-post/#post-6744518)
 * I am new at this but what exactly would that look like. Thank you for such quick
   respond.
 *  [prosperstudios](https://wordpress.org/support/users/prosperstudios/)
 * (@prosperstudios)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enqueue-script-to-show-single-post/#post-6744521)
 * It depends on the script you use.
    What is the script?
 *  Thread Starter [Modern DaDa](https://wordpress.org/support/users/sam202120/)
 * (@sam202120)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enqueue-script-to-show-single-post/#post-6744528)
 * I am not sure if I am asking this correctly but I just need a real life sample
   that I can follow. Could you write a script with the conditions that I listed
   in the very beginning? Thank you.
 *  [prosperstudios](https://wordpress.org/support/users/prosperstudios/)
 * (@prosperstudios)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enqueue-script-to-show-single-post/#post-6744547)
 * Put it in the Template file of the Theme.
 * Thus open the Theme directory > wp-content > themes > ThemeName
 * There’s a page there called single.php. This is a single page.
    Also, a page 
   called post.php. This is a single post.
 * Put your scripts on this page, as if it is a fresh PHP page.
 * Good luck.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Enqueue script to show single post’ is closed to new replies.

## Tags

 * [enqueue](https://wordpress.org/support/topic-tag/enqueue/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [single](https://wordpress.org/support/topic-tag/single/)
 * [single post](https://wordpress.org/support/topic-tag/single-post/)

 * 5 replies
 * 2 participants
 * Last reply from: [prosperstudios](https://wordpress.org/support/users/prosperstudios/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/enqueue-script-to-show-single-post/#post-6744547)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
