Hide Articles on Category page - only show Sections
Hello. I was wondering if there's a way to hide all the Article links on a Category page. I want to clean up my HC to only show the Sections on a Category page, so the Articles are visible only after clicking the Section page. We don't have Flexible Hierarchy. Is this possible? I would assume if possible, this change would apply to all my category pages, correct?
Thank you in advance.
-
Use the below code:
.category-content .section-tree .article-list,
.category-content .section-tree .see-all-articles {display:none}.category-content .section-tree .article-list and .category-content .section-tree .see-all-articles
both are the classess with the parent classes of articles.
If any query feel free to ask :)
Thanks
-
Hi Ifra Saqlain, sorry for the late response. Thank you for that information. I'm not exactly sure where to paste that code, and/or if it needs additional code.
-
Hi Ifra Saqlain, I was able to figure out where to enter the code. The page looks as desired. Thank you.
-
Hi Ifra Saqlain, is there a way to add arrows after the section titles without having to change all the section names? Also, can I reduce the space between section titles?
-
Hi could you share where that code goes and what it looks like? ideally a snippet of the block that does the magic.
-
Hi Heath Abbate, sorry for late response, you need to add that code to your style.css file at the bottom area.
댓글을 남기려면 로그인하세요.
6 댓글