douzai1074 2013-04-21 01:20
浏览 19
已采纳

在加载[关闭]之前出现在页面上的杂散“ - >”

I just moved my wordpress site from localhost to the live site, and it is showing "-->" before the page is loaded. What's that about?

Not sure if this is related, but the jquery scripts I am using have also stopped working.

Link to the site here.

Background: I had a difficult time moving the site. At the last minute, before moving the site, I changed the theme folder name. This broke a lot of instances throughout the theme where it referred to a path through that folder, so I had to fix those. I used a search and replace tool on the DB, but there were also some instances in the CSS I found that had to be fixed manually. Also, when I tried to import the SQL DB into the live site via PHP myAdmin, it said there was a syntax error. That seemed over my head, so I tried to just import the WP content through their import tool and then manually set up the menus and such again.

  • 写回答

1条回答 默认 最新

  • duangu6588 2013-04-21 01:23
    关注

    An "unopened" comment block. Without the opening <!--, the stray closing --> is printed on the page.

    If you are using a CMS (yep, you tagged WordPress), then

    1. You'd have to find that line where the --> appears.
    2. Look at the surrounding code and determine what it is. It could be a part of
      • The template
      • A plugin
      • User content (especially unfiltered input)
      • WordPress itself (who knows, it might have slipped QA)
      • Something that you placed in your site that we don't know!
    3. Look for that template/plugin/whatever and dig in!

    Still, it's manual work, but at least you have a much narrower scope.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?