简体   繁体   中英

How do I know which file to edit in wordpress?

I have a website in WordPress and I've noticed in some points I want to change a piece of text or something similar, but I don't know which file to edit.

How do I locate the file that I want to edit using FTP (for example using FileZilla) in order to change the website detail that I want to?

Long story short, there's going to be more than one file. A good place to start is by looking at the class of the body tag. Generally it references which templates the page is using.

It's a very big topic to discuss.

  • If you want to edit any content of the page you can edit page.php file which is located in your Theme folder eg (wp-content/themes/theme-name).
  • If you want to edit any content related to post you can content.php which is again related to your theme folder.
  • If you want to edit sidebar content edit sidebar-content.php file (located in your theme folder).

There are other templates as well. But all the template files are located in your theme folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM