Woocommerce plugin don't let website load
-
I am a newbie, trying to convert an old html website into WordPress, as of now keeping most of the part static.
I have installed Woocommerce plugin and when I activate it’s not letting my website load. Website has spinner and it don’t go further and keep showing that spinner.My php function looks like this
<?php if ( get_option ('thread_comments') ) { wp_enqueue_script('comment-reply'); } // Bootstrap Menu Support require_once('wp_bootstrap_navwalker.php'); // Create Nav Menu add_theme_support( 'menus' ); if (function_exists ('register_nav_menus')) { register_nav_menus ( array( 'primary' => 'Header Navigation' )); } // Create Post Thumb if (function_exists ('add_theme_support')) { add_theme_support( 'post-thumbnails' ); } function getPostViews($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); return "0 Plays"; } return $count.''; } function setPostViews($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); }else{ $count++; update_post_meta($postID, $count_key, $count); } } if (function_exists(register_sidebar)) { register_sidebar( array( 'name' => 'Footer Widgets Left', 'id' => 'footer-widgets-left', 'description' => 'Place widgets for the left footer here.', 'before_widget' => '<div class="span6">', 'after_widget' => '</div>' )); register_sidebar( array( 'name' => 'Footer Widgets Right', 'id' => 'footer-widgets-right', 'description' => 'Place widgets for the Right footer here.', 'before_widget' => '<div class="span3">', 'after_widget' => '</div>' )); register_sidebar( array( 'name' => 'Sidebar Widgets', 'id' => 'sidebars-widgets', 'description' => 'Place widgets for the sidebar here.', 'before_widget' => '<div class="one-third column">', 'after_widget' => '</div>' )); } function custom_comments ($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID(); ?>"> <header class="comment-header"> <?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?> <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?> <div class="comment-meta commentmetadata"><a>comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div> </header> <?php if ($comment->comment_approved == '0') : ?> <em><?php _e('Your comment is awaiting moderation.') ?></em> <?php endif; ?> <?php comment_text() ?> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> <?php } ?>
- The topic ‘Woocommerce plugin don't let website load’ is closed to new replies.