html - "the head part"中的页面缺少代码,如何在 Wordpress 中添加回来?

标签 html css wordpress internet-explorer-8

新手。主题在 IE8 中不正常。查看源代码,注意到在 IE8 中看起来很棒的主题演示在“头部”的末尾有这段代码,而我的没有:

<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><link rel="stylesheet" id="themetastic_ie8" href="http://themetastic.damojothemes.com/wp-content/themes/themetastic/css/ie8.css" type="text/css" media="all"><![endif]--></head>

我祈祷这就是问题所在。你认为这看起来像罪魁祸首吗?如果是这样,在我将 href 更改为指向我的 ie8.css 文件后,我将如何让这段代码工作并添加到我在 WordPress 中的所有页面?

感谢您的见解。

主题:http://themetastic.damojothemes.com/sidebar-left/ 我的网站:www.thetrafficketketman.com/scott-markowitz

最佳答案

您可以将该代码添加到主题的 header.php 文件中,在 和 标记之间。如果您在 PHP 函数调用 wp_head() 之前/之后添加它可能会有所不同;....因此请尝试两者,看看哪种最适合您。

关于html - "the head part"中的页面缺少代码,如何在 Wordpress 中添加回来?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19360443/

相关文章:

javascript - 在 Javascript 中将 Blob 的一部分绘制到 html Canvas 上,无需数据 url

javascript - 使用 jQuery 动态附加 HTML 元素不起作用

html - 减少 CSS 继承

php - WooCommerce 密码强度更改为 6 个字符

javascript - 使用类树删除特定的 HTML 元素

javascript - 从文本字段获取值并在按下提交时执行 jquery

javascript - jQuery根据像素调整百分比宽度调整margin-Left

html - 删除布局中的元素会破坏布局

css - 如何在帖子中添加CSS?

wordpress - 使用Docker运行现有的Wordpress网站