Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #763515

    Hi, I want sub category entries to show but I only want to be able to sort by main categories

    #764053

    bump

    #764430

    Hi,

    Can you post a link to the page you are referring above? you can post it in Private Content so only moderators can see the link.

    Best regards,
    Nikko

    #764457

    Hi thanks or the reply. I have postd a link.

    I tried adding ‘include_children’ => false, under terms but it didn’t work

    • This reply was modified 7 years, 9 months ago by arianemati.
    #766138

    any help

    #766397

    Hi,

    To hide the sub categories filter menu items please use the below css

    Please note the nth-child number of the catogery you like to add need to be added in css.

    If you like to target the sub cats only on a specific page please use the page id class :)

    .sort_by_cat a:nth-child(1),
    .sort_by_cat a:nth-child(1) + .text-sep,
    .sort_by_cat a:nth-child(3),
    .sort_by_cat a:nth-child(3) + .text-sep
    
     {
    	display:none!important;
    }

    Best regards,
    Vinay

    • This reply was modified 7 years, 9 months ago by Vinay.
    #766400

    Hi, thanks it worked but now its not possible to sort by all, is there a way to do that as well?

    #766521

    Hey!

    As i understand you like the “All” filter to appear correct?

    Please remove the below lines in the code provided to show the “All” filter menu.

    
    .sort_by_cat a:nth-child(1),
    .sort_by_cat a:nth-child(1) + .text-sep,

    Regards,
    Vinay

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.