How do you find which file is being used to generate output in WordPress?

When I view a job category on my website using a link
http://mywebsite.com/job-category/accounting/ 
it displays a sidebar and no footer menu.

How can I work out which file is being called from viewing source code?
And how would I remove the sidebar and add a footer menu that is displayed on the rest of my website?
sabecsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Banshi lal dangiFull Stack DeveloperCommented:
For categories, WordPress looks for the category-{slug}.php file. If it doesn’t exist, WordPress then looks for a file for the next hierarchical level, category-{ID}.php, and so on. If WordPress fails to find any specialized templates or an archive.php template file, it reverts to the default behavior, using index.php.

The category hierarchy is listed below:

  1. category-{slug}.php: For example, if the category’s slug is named “news,” WordPress would look for a file named category-news.php.
  2. category-{ID}.php: For example, if the category’s ID is “6”, WordPress would look for a file named category-6.php.
  3. category.php
  4. archive.php
  5. index.php
0
sabecsAuthor Commented:
Thanks, I can't see any category or archive files, would they be in my themes folder?  please refer attachedfile list
0
Banshi lal dangiFull Stack DeveloperCommented:
If there is no any category file, it means Index.php is being used there.
0
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

sabecsAuthor Commented:
Thanks Banshi for your help, very much appreciated.
If I was to copy index.php from my Divi folder and call it category.php and place it in my child theme and edit as I like would that be called?
0
Banshi lal dangiFull Stack DeveloperCommented:
Yes, certainly. please go through the Category hierarchy I mentioned in above comment.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sabecsAuthor Commented:
Thanks again for your help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.