Body class issue
-
Hello.
Setup
wordpress: 5.9.1 (latest)
woocommerce: 6.2.1 (latest)
theme: storefront 3.9.1 (latest)
Payment Gateway for PayPal on WooCommerce: 5.0.4Checkout page body classes with de-activated plugin:
page-template-default page page-id-9 logged-in admin-bar wp-custom-logo wp-embed-responsive theme-storefront woocommerce-checkout woocommerce-page woocommerce-js storefront-secondary-navigation storefront-align-wide right-sidebar woocommerce-active customize-supportCheckout page body classes with activated, but not enabled plugin:
woocommerce-checkout woocommerce-page woocommerce-js storefront-secondary-navigation storefront-align-wide right-sidebar woocommerce-active customize-supportThe problem might be the wpg_add_body_classes() function in woo-paypal-gateway\public\class-woo-paypal-gateway-public.php:377
public function wpg_add_body_classes($classes) {
if (is_checkout()) {
if ($this->wpg_enable_paypal_checkout() == false) {
return;
}
if (empty($this->gateway)) {
return $classes;
}
$classes[] = ‘wpg_paypal_checkout’;
if (wpg_has_active_session()) {
$classes[] = ‘wpg_paypal_checkout_hidden’;
}
}
return $classes;
}so it will remove all prior classes if plugin is installed and activated, but not enabled?
Please advise
Thanks
- The topic ‘Body class issue’ is closed to new replies.