- This topic has 7 replies, 3 voices, and was last updated 3 years, 9 months ago by Tom.
September 2, 2017 at 7:11 am #377844Andrew
Hi, great theme!
Any idea how to achieve this: On the parent category pages, there is a grid display of the subcategories with their category title, image, description and link.
Sure, it’s quite a bit of customization but I’d like to achieve it with GeneratePress.
Any pointers would be great!GeneratePress 1.4GP Premium 1.4.3September 2, 2017 at 10:28 am #377939LeoStaffCustomer SupportSeptember 2, 2017 at 12:59 pm #378006Andrew
You can see from the menu that Cycles is a page with three dropdown tabs that are categories that are actually subcategories of a parent category also called Cycle. I’d like to use the category page rather than a static page to display the three subs. I’d like it to be automatic so that every parent category page does that.September 2, 2017 at 11:17 pm #378167TomLead DeveloperLead Developer
That would involve some decent customization to the category page template. You’re likely better off using the static page approach – it gives you much more control.September 3, 2017 at 4:19 am #378225Andrew
OK, yes, sure – but a client wants it all done automatically.
When a category page is displayed, can you point me towards the relevant php files please.September 3, 2017 at 9:43 am #378373TomLead DeveloperLead Developer
category.php is the template file for categories.
category-slug.php is the template you would use for specific categories – slug being the name of the category.
Make sure to upload these files into a child theme 🙂October 10, 2017 at 3:06 am #400478Andrew
Getting confused, slightly – I can see no category.php file in the GP theme files.
Only the one in wp-includes.
Please advise!October 10, 2017 at 8:44 am #400728TomLead DeveloperLead Developer
We use archives.php, which works for categories as well as other archive pages. You can use archives.php as well, or use category.php which is more specific.
- You must be logged in to reply to this topic.