Where's the category.php page?
Topics related to Realistic theme goes here.

Abdulkadir

New Member Rank
Posts: 1
Joined: Sat Feb 10, 2018 6:57 pm
Display Name: Abdulkadir

Where's the category.php page?

linkPost by RezzaksTV » Sat Feb 10, 2018 7:05 pm

Hi, it's me again! Edit required to edit the theme, but I want to change the Category Part, but there is no category on the server. Help me out :)
I have to find a category page to make it a better design :)
User avatar
Asmi Khalil

Site Admin Rank
Posts: 779
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: Where's the category.php page?

linkPost by admin » Fri Feb 23, 2018 2:37 am

Hi Abdulkadir,
nice to hear from you again :D

There is no category.php file in Realistic. In fact, WordPress is using archive.php for all archive based pages including Category, Tag, Author, Date, Month...etc. (more on WordPress template files here https://developer.wordpress.org/themes/ ... ate-files/ and Template Hierarchy here https://developer.wordpress.org/themes/ ... hierarchy/).

So to customize only your Category page, you simply need to make a copy of archive.php and rename it to category.php then edit it as you please.
If you want your edits to be global for all archives, simply edit archive.php.
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943

Who is online

Users browsing this forum: No registered users and 1 guest

It is currently Fri Feb 22, 2019 8:39 pm