Why is it that its displaying both the main category and also the subcategory to yet I don’t want it to display the subcategory. Please help me get ride of that.
If it is the shop page, you can configure the page view in Appearance > Customize > Woocommerce > Product category, if you use the Product category element, you can set which categories to show right in the element option.
If you have any questions please feel free to contact us.