What PHP file to Edit in WordPress?

What PHP file to Edit in WordPress?

Hey guys what’s going on? My name is Jason. I’m the Lead Developer here at WebTegrity and I have a pretty cool trick for
you today- if you’re trying to make a change on
a template- particularly one that you didn’t build
and is a little complex and you don’t know where to start. Now, a lot of people have themes that are built by developers
that offer user interfaces for a lot of the complex changes on the website
but you can’t change everything. This is assuming that you’ve already
looked through all that. Right? You’re really trying to find this. What you might need to do is start digging
into those PHP files. If you’re not a “hard-core” Developer,
that’s a little bit of an intimidating task. There’s a lot of PHP files. It’s not
immediately known what each of them do. You certainly don’t know where to start to
find the information that you’re looking for. Some of you may have gone into the editor. If you go to ‘appearance’ and ‘editor.’ Let me show you what
I’m looking at. Here we have dipanddo.com our kind of “playground” website here at
WebTegrity. You’ve probably gone through some of these
(looking, kind of “guesstimating”) where it might be. Maybe you’re doing a
‘command F” function to try and find the piece of content that you’re looking for but this could take forever and it’s
really not that efficient. Or, you may have started to study the
WordPress template hierarchy (which is a little bit of a puzzle all on
it’s own.) Right? This is even complex for me to teach people when I’m teaching them
how to code from scratch. It can get even more complex than the template hierarchy that you
see in front of you when you’re talking about themes that are
made by grandiosity developers. Things like ‘Avada’. Really hard to dig into those PHP files
and find what you’re looking for if you don’t know where to start. Luckily I have a really cool
trick for you. It’s a plug-in called “What the File.” I think it’s appropriately named because
at this point in your search to find what you’re looking
for, you’ve probably have cursed a few times. “What the File” is a very lightweight
plug-in. (Let’s go ahead and ‘Add New’.) Let me show you what this thing does
(which is pretty cool. ) Like I said- lightweight, installs real quick, isn’t going to slow your website down and when you’re done finding what you need
to find you can go ahead and delete it. So we went ahead and ‘installed’ and
‘activated’ it. When we look at the front side of the
website, all of a sudden we get this logo in our
admin bar. If you hover over it , it will tell you
exactly what PHP file is being used to display that information. At the top it will tell you the major PHP
file being used (index.php) but it will also let you know any template
parts that the PHP file is calling (maybe in
other parts of the theme.) So it really helps you narrow down what
you might be looking for and really solve the problem of finding a
piece of text that you’re trying to change or maybe you don’t like this RSS feed and
they haven’t given you the option to get rid of it and you’re just trying to find where it’s
located. This is a great place to start and can
really speed up your troubleshooting process. If you have any questions please put them
down in the description. I’ll be happy to address them. That’s all I have for this video.
I’ll see you guys next time.

10 thoughts on “What PHP file to Edit in WordPress?

  1. I'm surprised it's not telling me ALL the php files. I would have expected header.php and footer.php to be listed, but they aren't. Why is that? Am I doing something wrong? Can "what the file" pick up the different files if some are in the parent theme and some are in the child theme?

  2. Hi there!
    Can you please help me to solve the following wordpress php(footer) fatal error? –
    β€œUnable to communicate back with site to check with fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP”.

  3. Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

    please give me solution oh this error

  4. okay! that's cool really. can you explain how can I convert php code into html so i can update the link?

  5. i know this is an old video but i'm a little lost, another person created the site using PHP & SQL. under cpanel i can see all the files. When i log into wordpress, i don't see any files. how do i get them so i can edit them with wordpress? ex: i want to move one banner (featured items) above the other banner (auto scroll right).

Leave a Reply

Your email address will not be published. Required fields are marked *