if( is_home() || ! $ed_section || ! ( is_front_page() || is_page_template( \'template-home.php\' ) ) ){
echo \'<div class = "container"><div id="content" class="site-content">
<div class="tab1">
<a class="cat_button" href="https://packnchew.com/product-category/appetizers-snacks/">Appetizers & Snacks</a>
<a class="cat_button" href="https://packnchew.com/product-category/fillers-international/">Fillers International</a>
<a class="cat_button" href="https://packnchew.com/product-category/meals-more/">Meals and More</a>
<a class="cat_button" href="https://packnchew.com/product-category/mains-indian/">Mains Indian</a>
<a class="cat_button" href="https://packnchew.com/product-category/mains-oriental/">Mains Oriental</a>
<a class="cat_button" href="https://packnchew.com/product-category/mains-international/">Mains International</a>
<a class="cat_button" href="https://packnchew.com/product-category/desserts-drinks/">Desserts And Drinks</a>
</div>
<div class = "row">\';
} ?>
查看第一行,
如果(is\\u home()| |)$ed\\u节| |!(is\\u front\\u page()| | is\\u page\\u模板(\'template home.php\')){
该块中的代码仅用于首页。如果您希望在所有页面上都能做到这一点,我建议您在上面加上这一点,或者在If声明中也包括woocommerce。
祝你好运