Displaying Sections in Catgory Template | Community
Skip to main content

Displaying Sections in Catgory Template

  • December 26, 2023
  • 1 reply
  • 0 views

Ronit12

Hi There, I Hope somebody can help me with this, I want to show sections differently on the category page.

 

I want to check the section name Dynamically

 

Thanks 
Ronit

1 reply

Ifra
  • December 28, 2023

Hi, you can use this code to hide.

  $(".section:first-child .article-list > .article-list-item > a:contains('Helth & Safety/Admin')" ).css("display", "none");
  
$(".section:last-child .article-list > .article-list-item > a:contains('Group Leader')" ).css("display", "none");
  


Note: Class-name must be matched with the given code

 

If any issue, feel free to ask.

Thanks