Title: Javascript not injecting in post page
Last modified: October 2, 2020

---

# Javascript not injecting in post page

 *  [pythondude](https://wordpress.org/support/users/pythondude/)
 * (@pythondude)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-injecting-in-post-page/)
 * I have been pulling my hair out for the past couple days trying to fix an issue
   that I simply can’t seem to get around.
 * I’ve provided a file containing 4 files. The steps below will create an environment
   similar to mine, if you want to try to fix the issue.
 * [https://gofile.io/d/Q4Uaiz](https://gofile.io/d/Q4Uaiz)
 * 1. install inbox theme in WordPress (found in folder ‘1 – themes’) and activate
   it
    2. install the plugin Advanced Custom Field (folder ‘2 – plugins’) and activate
   it 3. In Advanced Custom Field, import Advanced Custom Field file provided in
   folder ‘3 – acf content’ 4. In tools, import posts into wordpress from folder‘
   4 – wp posts’
 * We now have the same environment.
 * If you click on an article in the sidebar, you’ll see the right pane update with
   the article you clicked on. A read more button also appears.
 * If you click on read more, it will take you to a new page. On this page, you 
   will see graphs displayed.
 * This is the problem: for some reason, I cannot display on the graphs on the preview
   pane (the one with the “Read More” button).
    I have tried everything, but the
   Javascript is simply not being injected into the preview pane page, whereas it
   is in the single post page, and yet they both get their content from the same
   file, “content-single.php”.
 * I would massively appreciate any help, as this is driving me crazy. Thanks a 
   lot

The topic ‘Javascript not injecting in post page’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pythondude](https://wordpress.org/support/users/pythondude/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-injecting-in-post-page/)
 * Status: not resolved