-
AuthorPosts
-
April 13, 2015 at 11:54 am #248577
olivialParticipantHello,
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,
OliviaApril 13, 2015 at 1:41 pm #248663
NicoModeratorHi 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.
April 13, 2015 at 2:11 pm #248680
olivialParticipantHi 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.
April 13, 2015 at 7:12 pm #248841
FriechModeratorHi 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!
April 15, 2015 at 10:32 am #250322
olivialParticipantThat worked! Thank you so much!
April 15, 2015 at 12:11 pm #250400
NicoModeratorYou’re most welcome.
Let us know if you need anything else.
Thanks. Have a lovely day! 🙂
September 5, 2015 at 9:04 am #379605
ReapHitParticipantHi 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)September 5, 2015 at 9:59 am #379630
ZeshanMemberHi 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!
September 5, 2015 at 4:20 pm #379818
ReapHitParticipantReally 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 !
September 5, 2015 at 9:31 pm #379920
ChristianModeratorYou’re welcome. And, thank you for your kind words. 🙂
September 17, 2015 at 1:13 pm #394179
ReapHitParticipantThis reply has been marked as private.September 17, 2015 at 7:09 pm #394408
LelyModeratorHello 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.
September 18, 2015 at 12:06 pm #395130
ReapHitParticipantThis reply has been marked as private.September 18, 2015 at 12:11 pm #395139
ReapHitParticipantThis reply has been marked as private.September 18, 2015 at 7:30 pm #395413
Rue NelModeratorHello 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-248577 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
