Site logo

Archived topic

category title deletion and alignment issue in the post category archive

9 replies · Started by liz on August 11, 2021

Viewing posts 1–10 of 10

Hi,

Please help me align the texts and images in the post category archive.[ONLY FOR DESKTOP] as well as deleting the category title from the top of the page. link to the website in the private info field.

THANK YOU.

Hi there,

Can you provide any mockup image of how you want things to be laid out?

If you want something like this - https://share.getcloudapp.com/9ZuQYOoW - add this CSS:

@media(min-width: 1025px){
body.archive .generate-columns-container article .inside-article img {
    width: 100%;
}
}

As for removing the category title:

One of your block element is adding this. Can you check with one and exclude Category archives on the display rule exclusion list?

Hi, Elvin

I'm sorry, I tried to exclude category archives but it did not remove the category title tags. Also, I liked the way the images are laid out in the post category archive, the only problem is that--the texts go beyond the container's left side border [ONLY ON DESKTOP]

Thanks.

Hi there,

Can you specify which one between the 2 are you trying to remove?
https://share.getcloudapp.com/5zuN5KA1

If it's the 2nd one you can just add this css:

body.archive header.page-header {
    display: none;
}

Hi, Elvin.

I want to delete both. And I am also having a problem with the way the texts are aligned in the post category archive as you can see, the texts occupy the area beyond the container’s left side border [ONLY ON DESKTOP] Thank you.

Hi there,

I'm not seeing any alignment issues. Here's what I'm seeing: https://www.screencast.com/t/8O5mQAFnYQs

If you don't want a title at all, you'll want to:

1. Delete that block element.
2. Add this code to remove the default title:

add_action( 'wp', function() {
    if ( is_archive() ) {
        remove_action( 'generate_archive_title', 'generate_archive_title' );
    }
} );

Let us know if that helps or not :)

Hi,

It's okay I was able to fix the alignment issue. But the archive title is still a problem after inserting the codes provided.Thanks in advance

Hi there,

if you want to remove the title, you also need to Delete the Block Element ( in Appearance > Elements ) that is assigned to the Category Archive. Simple shortcut is to visit the archive page, and check in the Admin Bar > Elements, and you can select any of the elements displayed on that page.

Thanks.

You're welcome

This archived topic is closed to new replies.