How can I only show Tax Toggle on certain pages?

You are using the floating Tax Toggle but only want it to show on some pages.

To show it only on shop pages

We have an option in WooCommerce > Settings > Tax to "Only show Tax Toggle on Shop pages"

This includes all WooCommerce pages including home page.

To hide it on the home page

To hide the Tax Toggle on the home page, this will depend on your theme, but you should use CSS. Inspect the source of your website - look for a class in the BODY tag - a common one for the home page is class "home", but it could also be "homepage" or "frontpage".

Assuming it is "home" you can use the following CSS snippet to hide the tax toggle on your home page:

.home #wcvat-toggle {
display: none;

Article Details

Article ID:
Rating :