Home Forums Basel support forum Custom Product Page

Custom Product Page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3953

    lifrance
    Participant

    I was wondering if there was a way to display a custom or blank product page. We want to use a third party product page code instead of the default layout.

    Example:

    http://bestimpressionssales.com/?page_id=11

    #3958

    Artem Temos
    Keymaster

    Hello,

    Thank you for contacting us.

    You can try to achieve this by replacing code for single product page (file name basel/woocommerce/content-single-product.php) with the following

    <?php
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    ?>
    
    <div class="single-breadcrumbs-wrapper">
    	<div class="container">
    		<?php woocommerce_breadcrumb(); ?>
    		<?php basel_products_nav(); ?>
    	</div>
    </div>
    <div itemscope itemtype="<?php echo woocommerce_get_product_schema(); ?>" id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    	<div class="container">
    
    		<?php the_content(); ?>
    		
    	</div>
    
    </div>

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)