[Resolved] Hide posts from category archive page

Home Forums Support [Resolved] Hide posts from category archive page

Home Forums Support Hide posts from category archive page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1381496
    generatepressiscool

    Hello!

    I’m trying to set the category archive page to look like just a regular post.

    I’ve installed a plugin called Category Editor that allows to use the regular editor and style the description as it would be a post, but I would like to hide all posts from the category archive page, since I’m already handling that with a sidebar etc.

    #1381608
    David
    Staff
    Customer Support

    Hi there,

    at this time you would need to create your own archive.php in your child theme.
    You can use the themes original template and remove the loop highlighted here:

    https://github.com/tomusborne/generatepress/blob/08172eac6a77205798acfec4ce4a700fa6924ff5/archive.php#L35-L44

    GP 3.0 will introduce a way of removing / replacing template content without a child theme.

    #1381662
    generatepressiscool

    Hi David!

    Thanks for the quick response.

    I already have a GeneratePress Child theme, but it only has a stylesheet and functions.php.

    To create archive.php I would have to manually create the file via ftp, correct?

    #1381771
    David
    Staff
    Customer Support

    Thats correct. You can copy it from the Parent theme or from the github i linked too.

    #1381808
    generatepressiscool

    Thank you!

    #1381813
    David
    Staff
    Customer Support

    You’re welcome

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