最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Javascript not getting injected into page

programmeradmin3浏览0评论

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, to replicate the problem.

  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

发布评论

评论列表(0)

  1. 暂无评论