How to remove 3 latest posts below categories?

Is there a way to remove the three latest posts from appearing below the categories on mobile’s main page? For example, on the mobile’s main page it looks like:

CATEGORY 1
Latest post one…
Latest post two…
Latest post three…

CATEGORY 2
Latest post one…
Latest post two…
Latest post three…

I’d like it to just have a list of categories on the main page, to keep it extra clean, and then users can click the category to go to its respected page. I know in category setting you can set it to 1, but not 0.

Thanks so much!

2 Likes

Something like this will do it (you can add CSS under admin > customize > themes)

.mobile-view .categories-list {
  .category-topic-link {
    display: none; // Hides topics
  }
  .subcategories-list {
    border: none; // Removes extra border
    td {
      padding-top: 0; // Spacing fix
    }
  } 
  h3 {
    padding-bottom: 10px; // Spacing fix
  }
}

4 Likes

Thanks, that worked perfectly!

Do you have an equally easy fix to remove the “# total” and “# week” from each category?

If so, is it code I can put right below the code you sent, or does it need to be inserted into that somewhere?

Thanks!