KabboRahman Posted November 8, 2014 Share Posted November 8, 2014 hi everyone i got a new problem with my theme>woocommarce>content-single-product.php file.when i want to see single product then its show me this... here is the url of image: http://awesomescreenshot.com/0753t8tuca here is the site/error page url: http://championhouse.ky/product/fried-rice-pack-1/ here is the my "content-single-product.php" file php coding.its getting error from 4no line. <?php //Display Page Header global $wp_query; $postid = $wp_query->post->ID; echo page_header( get_post_meta($postid, 'qns_page_header_image', true) ); wp_reset_query(); ?> <!-- BEGIN .section --> <div class="section"> <?php do_action( 'woocommerce_before_single_product' ); ?> <div itemscope itemtype="http://schema.org/Product" id="product-<?php the_ID(); ?>" <?php post_class(); ?>> <ul class="columns-content page-content clearfix"> <!-- BEGIN .col-main --> <li class="<?php echo sidebar_position('primary-content'); ?>"> <h2 class="page-title"><?php the_title(); ?></h2> <ul class="columns-2 product-single-content clearfix"> <li class="col2 clearfix"> <?php do_action( 'woocommerce_before_single_product_summary' ); ?> </li> <li class="col2 clearfix"> <div class="summary"> <?php do_action( 'woocommerce_single_product_summary' ); ?> </div><!-- .summary --> </li> </ul> <?php do_action( 'woocommerce_after_single_product_summary' ); ?> <?php do_action( 'woocommerce_after_single_product' ); ?> <!-- END .col-main --> </li> <?php get_sidebar(); ?> </ul> </div><!-- #product-<?php the_ID(); ?> --> <!-- END .section --> </div> please help me out of this... Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted November 9, 2014 Share Posted November 9, 2014 The error states that page_header() function does not exist. Considering the default wordpress hook is get_header(), am going to assume this is supposed to be a function included in your theme. I would examine your functions file within your theme and ensure that function exists, properly closed. For the record, your site has a ridiculous amount of css and js includes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.