WordPress.org

Forums

WooCommerce
How to check if I'm on my shop page? (2 posts)

  1. Raider000
    Member
    Posted 2 years ago #

    Hi,

    how do I check if the current URL is my shop?
    I have tried out:
    <?php if (is_shop() || is_woocommerce() || is_product_category() || is_product_tag()) : ?>
    but none of them works.

    http://wordpress.org/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 2 years ago #

    is_shop() should definitely work for the default shop archive unless you have changed it to something else in your WC settings.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.