在哪个目录中可以找到我的wordpress页面的HTML文件?
5 个回答
- 投票数
-
- 2011-02-17
WordPress将内容存储在数据库中,没有任何包含页面(或帖子)内容的物理文件.主题的模板文件控制着如何呈现和显示网站,您可以在
中找到这些文件.wp-content/themes/YOUR-ACTIVE-THEME-NAME-HERE
..您可以在此处找到许多有关主题及其发展的信息.
http://codex.wordpress.org/Theme_Development其他信息和指南可以通过上面链接页面的资源部分中列出的其他文档找到,此处仅供快速参考.
http://codex.wordpress.org/Theme_Development#Resources_and_References快速搜索WordPress论坛还将为您提供所需的信息(仅需注意).
http://wordpress.org/search/where+is+content+stored?forums=1希望有帮助.
WordPress stores content in the database, there are not any physical files with the content of the pages(or posts). The theme's template files control how to render and display your site, you can find those files in
wp-content/themes/YOUR-ACTIVE-THEME-NAME-HERE
..You can find lots of information on themes and their development here.
http://codex.wordpress.org/Theme_DevelopmentAdditional information and guidance can be found through the other documentation listed in the resources section of the above linked page, here it is for quick reference.
http://codex.wordpress.org/Theme_Development#Resources_and_ReferencesA quick search of the WordPress forums would have also provided you with the information needed(just something to note).
http://wordpress.org/search/where+is+content+stored?forums=1Hope that helps.
-
-
谢谢!顺便说一句.对我来说,现在是/public_html/wp-content/themes/{THEME}/header.phpThanks! Btw. for me now it was directly /public_html/wp-content/themes/{THEME}/header.php
- 0
- 2018-06-07
- Andrei Hardau
-
-
- 2011-02-17
Prateek,
尽管它取决于主题,但是您的页面设计的许多结构元素都包含在主题.php文件中.转到控制面板>外观>编辑器,您将看到构成模板的文件,对于某些主题,还会显示所显示页面的部分.您可以使用WordPress编辑器或文本编辑器进入这些文件,并对主题模板本身进行更改,这可能使您可以进行所需的更改(请确保从副本开始进行操作,直到满意为止).
以二十个主题为例,您可以找到<body> header.php文件中的信息.
Prateek,
Although it is theme dependent, many of the structural elements for your pages design are contained in the themes .php files. Go to DASHBOARD > APPEARANCE > EDITOR and you will see the files that make up the templates and in the case of some themes, sections of your displayed pages. You can go into these files using the WordPress editor or a text editor and make changes to the theme template itself, which may allow you to make the changes you desire (be sure to work from a copy until you are satisfied).
Using the Twenty-Ten theme as an example, you can find the < body > information in the header.php file.
-
- 2018-07-01
上面找到了您将找到文件的目录.但是我觉得还有更多需要补充的地方.page.php文件包含您网站上不是您的主页或博客/帖子页面的页面的框架. 通常您会看到类似
<?php get_header(): ?> <div class="container"> <?php the_content(); ?> </div>
当然还有其他事情.但是重要的是该文档有时会插入和退出php,而两者之间是可编辑的html. 希望对您有帮助
The directory that you would find the files has been answered above. But I felt that there was more to add. The page.php file contains the framework for pages on your site that are not your home page, or your blog/posts page. Usually you will see things like
<?php get_header(): ?> <div class="container"> <?php the_content(); ?> </div>
As well as other things of course. But what is important there is that the document drops in and out of php at times, and in between is edit-able html. I hope this helps
-
- 2020-07-09
这是仅存储HTML文件的主要路径/public_html/wp-content/themes/此处为您的主题名称/ 和帖子和页面存储在数据库表名称 wp_posts 中 如果您需要有关它的更多详细信息,请查看 WordPress页面和帖子在哪里已存储
This is the main path to stored Html file only /public_html/wp-content/themes/here your theme name/ and post and pages are stored in a database table name wp_posts If you more details about it go and check Where are WordPress Pages and Posts Stored
我想在我的wordpress页面上手动编辑代码.WP界面仅允许我单独编辑CSS或PHP.页面编辑功能使我可以访问代码的某些部分,但不包括正文标签.
请帮助我在服务器上找到我的文件.
感谢您的帮助!
:)