This will only shows the categories in Shop page. The settings is by WooCommerce and can only done via Theme Customize. From your admin Dashboard, navigate to Appearance > Customize:
In the left sidebar, select WooCommerce tab and then Product Catalog
Select your desired display option via Shop Page Display setting
Remember to Publish your changes in order to save your work