server - In which directory do I find the HTML file of my wordpress pages?

I would like to manually edit the code my my wordpress pages. The WP interface only allows me to individually edit the C

I would like to manually edit the code my my wordpress pages. The WP interface only allows me to individually edit the CSS or PHP. The Page Edit feature gives me access to a certain part of the code, excluding the Body Tag.

Kindly help me locate my files on the server.

Thanks for your help!

:)

I would like to manually edit the code my my wordpress pages. The WP interface only allows me to individually edit the CSS or PHP. The Page Edit feature gives me access to a certain part of the code, excluding the Body Tag.

Kindly help me locate my files on the server.

Thanks for your help!

:)

Share Improve this question asked Feb 17, 2011 at 12:28 Prateek MishraPrateek Mishra 1071 gold badge2 silver badges6 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 4

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/Theme_Development

Additional 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/Theme_Development#Resources_and_References

A quick search of the WordPress forums would have also provided you with the information needed(just something to note).
http://wordpress/search/where+is+content+stored?forums=1

Hope that helps.

You can find your root HTML file in here: /public_html/wp-content/themes/"YOUR THEME NAME"/framework/templates A file named header.php has to be in there.

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.

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742281022a4414476.html

相关推荐

  • server - In which directory do I find the HTML file of my wordpress pages?

    I would like to manually edit the code my my wordpress pages. The WP interface only allows me to individually edit the C

    21小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信