رفتن به مطلب

خطا در نمایش سایت


rjmb

پست های پیشنهاد شده

سلام. سایت من خطاهایی میدهد که مربوط به کد زیر است:

<?php woocommerce_custom_breadcrumb(); ?>

نمونه هایی از خطا:

Fatal error: Call to undefined function woocommerce_custom_breadcrumb() in /home/nlpfanir/domains/nlpfan.ir/public_html/wp-content/themes/Cartel-hamyarwp.com_/woocommerce.php on line 18

 

Fatal error: Call to undefined function woocommerce_custom_breadcrumb() in /home/nlpfanir/domains/nlpfan.ir/public_html/wp-content/themes/Cartel-hamyarwp.com_/fullpage.php on line 19

 

چکار باید بکنم؟

]fddg

لینک به ارسال

محتوای فایل woocommerce.php:

<?php
/**
 * The template for displaying woocommerce pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package Cartel
 */

get_header(); ?>
<div id="subheader">
    <div class="container"><div class="row">
        <div class="col-md-12">
            <h2><?php _e( 'Shop', 'cartel' ); ?></h2>
            <?php woocommerce_custom_breadcrumb(); ?>
        </div>
    </div></div>
</div>

<div class="container"><div class="row">

<div class="col-md-12">
    <div id="primary" class="content-area">
        <main id="main" class="site-main" role="main">

            

                <?php woocommerce_content(); ?>

            

        </main><!-- #main -->
    </div><!-- #primary -->
</div>

</div></div>
<?php get_footer(); ?>
 

لینک به ارسال

محتوای فایل fullpage.php:

<?php
/**
 * The template for displaying full width pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 Template name: Fullpage
 * @package Cartel
 */

get_header(); ?>
<div id="subheader">
    <div class="container"><div class="row">
        <div class="col-md-12">
            <h2><?php the_title(); ?></h2>
            <?php woocommerce_custom_breadcrumb(); ?>
        </div>
    </div></div>
</div>

<div class="container"><div class="row">

<div class="col-md-12">
    <div id="primary" class="content-area">
        <main id="main" class="site-main" role="main">

            <?php while ( have_posts() ) : the_post(); ?>

                <?php get_template_part( 'content', 'page' ); ?>

                <?php
                    // If comments are open or we have at least one comment, load up the comment template
                    if ( comments_open() || '0' != get_comments_number() ) :
                        comments_template();
                    endif;
                ?>

            <?php endwhile; // end of the loop. ?>

        </main><!-- #main -->
    </div><!-- #primary -->
</div>

</div></div>
<?php get_footer(); ?>
 

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...