• torbent

    (@torbentschechnegmailcom)


    When I set up WooCommerce I select a page to act as the page for the shop – this page is used for the archive views etc. How can I detect if the front page of the store is displayed? Something like is_shop() && is_front_page() is needed. I want to have a frontpage which is different from the archive pages.

    If I open up my stores front page and do echo get_the_id(); it gives me an ID of a product. So if get_option( 'woocommerce_shop_page_id' ) == get_the_id() does not work for me.

    Does anybody knows a possibility how I can have a shop front page which is showing other content than the loop?

    Thank you!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Detect front page of the store’ is closed to new replies.