Skip to content

Commit

Permalink
class issue has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
codersaiful committed Jul 25, 2022
1 parent 6ef5279 commit 5a9d43d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,8 +1093,9 @@ function wpt_get_value_with_woocommerce_unit( $target_unit, $value ){
function wpt_adding_body_class( $class ) {

global $post,$shortCodeText;

if( isset($post->post_content) && has_shortcode( $post->post_content, $shortCodeText ) ) {

if( ( isset($post->post_content) && has_shortcode( $post->post_content, $shortCodeText ) )
|| $post->post_type == 'wpt_product_table' ) {
$class[] = 'wpt_table_body';
$class[] = 'woocommerce';
}
Expand Down

0 comments on commit 5a9d43d

Please sign in to comment.