Home › Forums › Support › Category Woocommerce This topic has 10 replies, 2 voices, and was last updated 4 years, 10 months ago by David. Viewing 11 posts - 1 through 11 (of 11 total) Author Posts May 21, 2021 at 2:25 am #1792283 M.schreijer@gmail.com Hello, Ik got on mine site woocommerce sub category. But the sub category are in de main category. i got the category ”bab’y” and there under i want ”jongen” ”meisje” but the sub are standing in the main catory also http://www.marktstore.nl/index.php/product-categorie/baby/ May 21, 2021 at 4:52 am #1792436 DavidStaff Customer Support Hi there, did you resolve the issue – as this is what i see https://www.screencast.com/t/hcsZDJTrZb May 21, 2021 at 5:05 am #1792447 M.schreijer@gmail.com Thank you. No. above is the sub category as well ” Meisje ” & ” Jongen ” has to get out of there. under category baby it is fine May 21, 2021 at 5:23 am #1792468 DavidStaff Customer Support Just to confirm do you want to only show Parent Categories in the menu ? And does this apply to other pages like the Shop Page? May 21, 2021 at 5:34 am #1792487 M.schreijer@gmail.com Yes i want only the main category on the shop page. not the sub. May 21, 2021 at 5:37 am #1792489 M.schreijer@gmail.com May 21, 2021 at 5:52 am #1792497 DavidStaff Customer Support Go to Dashboard > Appearance > Elements. Edit the element titled: Woocommerce Shop Category Menu Look for this part of the code: <?php $cat_args = array( 'orderby' => 'name', 'order' => 'asc', 'hide_empty' => true, ); And change it to: <?php $cat_args = array( 'orderby' => 'name', 'order' => 'asc', 'hide_empty' => true, 'parent' => 0, ); The change is just adding the 'parent' => 0, argument May 21, 2021 at 6:00 am #1792501 M.schreijer@gmail.com Yes!!!!1!! THANK YOU!!!!!!!!! you are a Hero. one more little question. How can you change the order of category? I have here to drag it up and down. but that didn’t work May 21, 2021 at 6:04 am #1792505 DavidStaff Customer Support In the code above change: 'orderby' => 'name', to: 'orderby' => 'menu_order', It should use the Order you have set in the category list May 21, 2021 at 6:15 am #1792520 M.schreijer@gmail.com Thanks again!!!! May 21, 2021 at 6:21 am #1792536 DavidStaff Customer Support Glad to be of help Author Posts Viewing 11 posts - 1 through 11 (of 11 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In