WordPress.org

Forums

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

  1. Raider000
    Member
    Posted 1 year 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 1 year 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

About this Topic

Tags

No tags yet.