Category Page (Customisation)

Home Forums ColorMag Free Category Page (Customisation)

This topic contains 8 replies, has 2 voices, and was last updated by  Nitu Shrestha 7 months, 2 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1400799

    I am using this CSS code to make my category pages not have the sidebar:

    .archive.category-groups #primary {
    width: 75%;
    }

    .archive.category-groups #secondary {
    display: none;
    }

    How can I make it so all the posts within the category displayed on the page are centralised? Currently, they all appear to the left of the page and there is a big gap where the sidebar would be. I would like them to appear in the middle of the page.

    One other question, how would I remove the post description on a category page (the text above the “Read More” button) but not the post title or image?

    #1400864

    Nitu Shrestha
    Moderator

    @benjaminstephenwhite

    For the first issue, can you add the below CSS code to Additional CSS box and check?

    .archive #secondary {
        display: none;
    }
    .archive #primary {
      width:100%;
    }

    For the second issue, Can you add the below CSS code to Additional CSS box and check?

    .archive p {
        display: none;
    }

    Thanks.

    #1400874

    Hi there,

    Using width 100% does centralise the posts however it makes the images of posts look stretched and such, I’d like to have the category posts centralised at width 75% if possible.

    The second piece of code does remove the text above the read more button however it also removes important information such as footer text, site tagline, etc (I would just like the text above the read more removed and not other important information on the site)

    Thanks

    #1400881

    Nitu Shrestha
    Moderator

    @benjaminstephenwhite

    Can you provide us the URL of your website so that we can inspect it and give you a better solution?

    Thanks.

    #1400890

    Sent as private reply

    Thanks again,

    #1400892

    Nitu Shrestha
    Moderator

    @benjaminstephenwhite

    Can you replace the above-provided CSS code with below CSS code and check?

    .archive #secondary {
      display: none;
    }
    .archive #primary {
      float: none;
      margin: 0 auto;
    }
    .archive .entry-content {
      display: none;
    }

    Thanks.

    #1400905

    Thank you very much for providing me this, the code does exactly what I wanted. Really appreciate your fast and helpful support!

    #1400908

    Nitu Shrestha
    Moderator

    @benjaminstephenwhite

    Do let us know if you have got any further query regarding to our theme.
    We will really appreciate if you could help us too by rating our theme in WordPress repo here:-
    https://wordpress.org/support/view/theme-reviews/colormag
    Thanks.

    #1400915

    Left a 5-star rating, thank you.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.