Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #248577
    olivial
    Participant

    Hello,

    Is there a way to hide a certain category from the Ethos homepage recent posts section (I am not using a static homepage)? I want this specific category to only appear on the sidebar on the homepage, not in the main post section.

    Thank you for your help,
    Olivia

    #248663
    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    You could check this link below for more information about that:

    https://theme.co/x/member/forums/topic/ethos-category-filter/

    Hope it helps.

    Thanks.

    #248680
    olivial
    Participant

    Hi again,

    Thanks for your response, but no, that entry is not really what I’m looking for.

    I don’t want to use the filterable index feature because there’s no pagination option and it does not display multiple categories at once; it only displays one category at a time and even at that it is very clunky.

    I want to a achieve a very basic task. I want to use the regular ‘Your Latest Posts’ homepage and I want to hide one specific category from appearing on the main portion of the page. And I DO want this category to appear on the sidebar.

    Thanks.

    #248841
    Friech
    Moderator

    Hi There,

    Please add this under Custom > CSS in the Customizer.

    .blog .post.category-slug {
    	display: none;
    }

    Change the slug to the actual category slug(name).

    Hope it helps, Cheers!

    #250322
    olivial
    Participant

    That worked! Thank you so much!

    #250400
    Nico
    Moderator

    You’re most welcome.

    Let us know if you need anything else.

    Thanks. Have a lovely day! 🙂

    #379605
    ReapHit
    Participant

    Hi there !

    I tried your css code in the custom, and it works. But actually on my website, the home page displays a blank space instead of section hidden . Is it possible to remove this white space ?
    http://reaphit.com/v2/
    (Second article in home)

    #379630
    Zeshan
    Member

    Hi there,

    This is because you are using masonry layout. Try removing the provided CSS code and adding following JS code under Custom > JavaScript in the Customizer:

    jQuery(document).ready(function($) {
      $('.blog .post.category-news')
        .css({'visibility': 'hidden', 'display': 'none'})
        .removeClass("hentry item masonry-brick");
    });
    

    Thanks!

    #379818
    ReapHit
    Participant

    Really Guys, your customer service is amazing. I achieved a lot of changes to the starting Ethos theme through this forum. And this without knowing anything about coding. CSS Custom is a major selling point for theme X.

    Thanks a lot. Really !

    #379920
    Christian
    Moderator

    You’re welcome. And, thank you for your kind words. 🙂

    #394179
    ReapHit
    Participant
    This reply has been marked as private.
    #394408
    Lely
    Moderator

    Hello There,

    Unfortunately, I tried to log in once but when I submit the following error occurs: You have been locked out due to too many invalid login attempts.. Kindly check.

    #395130
    ReapHit
    Participant
    This reply has been marked as private.
    #395139
    ReapHit
    Participant
    This reply has been marked as private.
    #395413
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the login information. The code above is only limited to hiding the post with specific category. Out of the 10 posts which you have set in your Settings > Reading > Blog pages show at most, the depending on the number of posts which belong to the specific category, the number of post displayed will be less than 10 after the code is applied.

    If you want to truly display 10 post, please go to you customizer Appearance > Customize > Ethos > Blog Options and enable the Filterable Index. Once enabled, insert the Category IDs of the post that you want to display in your blog. Please check our knowledge base to get the category IDs: https://community.theme.co/kb/how-to-locate-category-ids/

    Hope this helps. Please let us know how it goes.

  • <script> jQuery(function($){ $("#no-reply-248577 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>