获取纯 HTML/CSS 版本的 WordPress 主题,无需 PHP?
我在哪里可以找到纯 HTML/CSS 格式的优雅外观 WordPress(或不是 WordPress,但类似风格)主题,而不需要所有 php?
谢谢。
where can I find elegant looking Wordpress (or not Wordpress, but similar style) themes in plain HTML/CSS format, without all the php?
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在浏览器中查看主题预览页面的页面源码。保存代码。
View the page source of the theme preview page in your browser. Save the code.
一页很容易。很多页面都很难。
您需要在浏览器中查看您想要获取 HTML/CSS 的每个页面。
不仅是保存而且是研究设计和 HTML/CSS 结构的好方法,
使用
FireBug
、Firefox
插件。我确信它可以节省大量时间,并且您一定会喜欢它。Easy for one page. Difficult for many pages.
You need to see in browser each page you want to get the HTML/CSS.
A good way not only to save but to study the design and HTML/CSS structure,
use
FireBug
,Firefox
addon. I am very sure it save lots of time and you will love it.我不确定你的问题是什么意思。
如果您的意思是“Wordpress 是否有不需要 php 的主题?”那么答案是否定的。然而,您实际上并不需要了解 php 才能使用这些主题。您可以只加载它们,然后只更改 CSS。
如果您的意思是“如何为非 WordPress 网站调整 WordPress 主题?”那么你就必须自己手动完成此操作。首先确保您使用的是 Firefox 并安装 Firebug。转到具有您想要的主题的网站,然后打开 Firebug。
在 HTML 选项卡下,您将能够看到页面经过后端 PHP 处理后的静态 HTML。只需单击“编辑”,然后将其中的所有内容复制并粘贴到新文件中即可。然后单击“CSS”选项卡并浏览每个样式表,再次单击“编辑”以将所有内容复制并粘贴到新文件中,每个样式表 1 个。然后将所有文件粘贴到一个文件夹中并编辑 html 文件的标头,以确保外部样式表链接指向您创建的样式表。在浏览器中打开它,它看起来应该如您所愿。
I'm not sure what you mean in your question.
If you mean, "Are there themes for Wordpress that don't require php?" then the answer is no. However, you don't actually need to know php in order to use these themes. You can just load them and then alter only the CSS.
If you mean "How can I adapt a Wordpress theme for a non-Wordpress site?" then you'll have to do this yourself, manually. First make sure you are using Firefox and install Firebug. Go to a site that has the theme that you want and then open up Firebug.
Under the HTML tab you'll be able to see the static HTML of the page, after it has been processed by the backend PHP. Just click "Edit" and then copy and paste everything in there into a new file. Then click the "CSS" tab and go through each style sheet, again clicking on Edit in order to copy and paste everything into new files, 1 for each sheet. Then stick all of the files into a folder and edit the header of the html file to make sure the external stylesheet links are pointing to the stylesheets you have created. Open it up in a browser and it should look just as you want it to.