Shop Categories

X

Disable header on archive pages

Home Forums Agama Pro Disable header on archive pages

Topic Resolution: Resolved

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26285

    Hi there,

    I need help with two things:
    1) I would like to remove or replace the header on the archive pages (for my categories and tags) and on the pages with search results.
    2) Also I would like the header to always have the same size no matter the size of the image I upload as a header.

    Would you please tell me how to do that?

    And is it possible to add a title or/text text to a archive page?

    Thank you very much

    Anja

    #26297
    Zex
    Moderator

    Hello, Anja!

    1. You can only remove the header. So if you want to do that, insert the following code into Customizing->General->Additional CSS:

    .archive #masthead {
        display: none!important;  
    }

    There is a plugin called “Archive Control” by which you can edit some parts on archive pages.
    Here you can find a good guide on how to use it:
    https://www.abrightclearweb.com/how-to-add-custom-content-to-wordpress-category-archives/

    Also, the Elementor Page builder PRO version has the ability to create the Archive templates:
    https://docs.elementor.com/article/464-archive-posts-widge
    Dynamic Series #02: Archives Template in Elementor PRO
    How to Design the Archive Template in WordPress

    2. Insert the following code into Customizing->General->Additional CSS:

    .wp-custom-header img{
    height: 300px!important; /*set your height*/
    width:100%;
    object-fit:cover!important;
    /*object-position: center bottom;*/
    }

    Uncomment the “object-position” value if you want to set the custom image position.

    Regards

    • This reply was modified 3 years, 2 months ago by Zex.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.