PHP Script Not Running in WordPress Correctly

假装没事ソ 提交于 2019-12-02 10:17:06

Apparently there's an issue with the relative URL reference. Rather than referencing to the stylesheet with

<link href="../css/style.css" rel="stylesheet" type="text/css" />

Try absolute path instead

<link href="/css/style.css" rel="stylesheet" type="text/css" />

This should work on all pages, assuming that you store the stylesheet file inside the css folder within the site root folder. You should also do the same thing with the other CSS for IE

<!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="/css/ie7below.css" /><![endif]-->

This way, no matter how deep the path the user is accessing (e.g http://usborrow.pizzli.com/folder1/folder2/folder3/file.abc) the CSS can be referenced without any problem.

EvilSpaceHamster

It would seem you should include /apply/style.css.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!