0
私はwoocommerce.phpファイルにどこにwoocommerceループを追加するのか苦労しています。ここでWoocommerceをカスタムWordpressテーマと統合する方法
私は言葉だけでGETヘッダーとフッターを使用して試してみましたが、出力は非常に非常に悪かった
<?php woocommerce_content(); ?>
を追加する
<?php
/*
Package: OnAir2
Description: Normal single page template with sidebar
Version: 0.0.0
Author: QantumThemes
Author URI: http://qantumthemes.com
*/
?>
<?php get_header(); ?>
<?php
get_template_part ('phpincludes/menu');
get_template_part ('phpincludes/part-searchbar');
?>
<div id="maincontent" class="qt-main">
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- ======================= HEADER SECTION ======================= -->
<?php get_template_part('phpincludes/part-header-caption-page'); ?>
<!-- ======================= CONTENT SECTION ======================= -->
<div class="qt-container qt-spacer-l">
<div class="row">
<div class="col s12 m12 l1 qt-pushpin-container">
<div class="qt-pushpin">
<?php get_template_part('phpincludes/sharepage'); ?>
</div>
<hr class="qt-spacer-m">
</div>
<div class="col s12 m12 l8">
<div class="qt-the-content">
<?php the_content(); ?>
</div>
<?php if (comments_open() || '0' != get_comments_number()){ ?>
<hr class="qt-spacer-m">
<?php comments_template(); ?>
<?php } ?>
<hr class="qt-spacer-l">
</div>
<div class="qt-sidebar col s12 m12 l3">
<?php get_template_part ( 'phpincludes/sidebar'); ?>
<hr class="qt-spacer-l">
</div>
</div>
</div>
</div>
<?php endwhile; // end of the loop. ?>
<?php get_template_part ('phpincludes/part-sponsors'); ?>
</div><!-- .qt-main end -->
<?php get_template_part ('phpincludes/footerwidgets'); ?>
<?php get_template_part ( 'phpincludes/part-player-sidebar'); ?>
<?php get_footer(); ?>
、page.phpコードです。開発者がテーマをWoocommerceと互換性を持たせていないので、私はそれを作る必要があります....
ありがとう、私はそれを試みたが、それは完全にヘッダーとフッターに参加しました。コンテンツセクションは表示されません、ここにショップへのリンクです:http://bluebridgetechnology.co.za/client/dexterity/shop/ – user3385915