How to display a product categories dropdown select?

How to display a product categories dropdown select?

Well, in this snippet you will learn a lot of things. For example, the wc_product_dropdown_categories () function magically displays a category dropdown, while the wc_enqueue_js () function allows you to inject jQuery (responsible to trigger the category page redirect).

How to display product categories dropdown in WooCommerce?

For example, the wc_product_dropdown_categories () function magically displays a category dropdown, while the wc_enqueue_js () function allows you to inject jQuery (responsible to trigger the category page redirect). You can demo this snippet on this live WooCommerce website of mine: A Piece of Sicily – Sicilian Crafts Category.

Where do I find product categories in xtemos?

There is an option to show the Product categories in the shop page heading which is configured in the Theme Settings > Shop Page > Sidebars and Page Title Demo: https://woodmart.xtemos.com/shop/ Option “Categories in page title” will show the Product categories menu generated automatically based on all categories existing in the shop.

Where to find product categories in WOODMART theme?

WoodMart theme has expanded Product categories presentation. Product categories menu can be presented in the shop page title, in the search form, Browse categories (in header builder and by means of Mega menu element).

How to show categories on shop Page in WordPress?

On your WordPress admin panel, go to Appearance > Customise > WooCommerce to access the settings, and click Product Catalog. Here you will see an option for Shop page display. There are three options in a drop-down – show products, show categories, show categories and products. You can choose the display option on the Shop page here.

How to control the display on category page?

WooCommerce also provides options to determine the layout of category pages as well. If you display the categories on the shop page, and a customer clicks the category name and lands on the category page. How will you control the display on the category page?