[Support request] Display subcategories on parent category page.

Home Forums Support Display subcategories on parent category page.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #377844
    Andrew

    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.4
    GP Premium 1.4.3
    #377939
    Leo
    Staff
    Customer Support

    Hi Andrew,

    This will require lots of customizations for sure.

    Are you able to provide an example of what you are going for? Thanks!

    #378006
    Andrew

    Well, http://lifecycle.pash.space/cycles/

    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.

    #378167
    Tom
    Lead Developer
    Lead 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.

    #378225
    Andrew

    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.

    #378373
    Tom
    Lead Developer
    Lead 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 🙂

    #400478
    Andrew

    Hi there,

    Getting confused, slightly – I can see no category.php file in the GP theme files.

    Only the one in wp-includes.

    Please advise!

    #400728
    Tom
    Lead Developer
    Lead 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.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.