Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Fix is_front_page() not working on WC shop page set as site's static front page #253

Merged

Conversation

marian-kadanka
Copy link
Contributor

This pull request fixes #252

What's Included in This Pull Request

Not sure why this branch of IF conditional set post_type to 'product',
since post_type is not set when using WooCommerce shop page as site's
static front page. Removing this ELSE branch fix the issue and
everything else is working fine.

Tested with WooCommerce 3.1.2 and 3.2.1, switching default languages,
using both shop page as site's front page and on standalone shop
pages in all language versions.

…front page

Not sure why this branch of IF conditional set post_type to 'product',
since post_type is not set when using WooCommerce shop page as site's
static front page. Removing this ELSE branch fix the issue and
everything else is working fine.

Tested with WooCommerce 3.1.2 and 3.2.1, switching default languages,
using both shop page as site's front page and on standalone shop
pages in all language versions.
@hyyan hyyan merged commit 13409a5 into hyyan:master Dec 5, 2017
@hyyan
Copy link
Owner

hyyan commented Dec 5, 2017

@marian-kadanka Thank you 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

is_front_page() conditional tag not working when using shop page as static front page
2 participants