Pages don’t display
-
When adding an item to the cart, the website jumps to its startpage. The pages cart, checkout etc. are not displayed.
I have followed instructions to setup these pages:
Woocommerce > Settings > Checkout > Cart page > Selected Cart
Pages > Added the page “Cart” > Added the shortcode “[woocommerce_cart]”It seems that my theme is not compatible (also because it looks horrible ;)). But I can not figure out, where this issue results from… Any help?
For this I had created a woocommerce.php:
<?php get_header(); ?> <section class="row"> <div class="col-sm-12"> <?php woocommerce_content(); ?> </div> </section> <?php get_footer(); ?>
and added this in the functions.php:
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10); add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10); function my_theme_wrapper_start() { echo '<div class="col-sm" id="main">'; } function my_theme_wrapper_end() { echo '</div>'; } add_theme_support('woocommerce');
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Pages don’t display’ is closed to new replies.