رفتن به مطلب

حذف نام نویسنده و تاریخ ارسال مطلب در پوسته zalive


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

کد single.php ضمینه کنید اما باز باید توابع زیر حذف کنید


<?php the_time('d-m-y') ?>
<?php the_author(); ?>

  • امتیاز 2
لینک به ارسال

اینم single.php


<?php
/**
* single template
*/
get_header(); ?>
<?php //show sidebar on the left
if( $zAlive_options['primary_sidebar_layout'] == 2 ) { get_sidebar(); }
?>
<div id="main">
<?php if( $zAlive_options['breadcrumb_enabled'] == true ) {zAlive_breadcrumb();} ?>
<?php if ( have_posts() ) : ?>
<div id="post-<?php the_ID(); ?>" <?php post_class( array('article','clearfix') ); ?>>
<?php
/* Start the Loop */
while ( have_posts() ) : the_post();
get_template_part( 'template/content', get_post_format() );
wp_reset_postdata();
endwhile;
?>
</div>
<?php else : ?>
<?php get_template_part( 'template/content', 'none' ); ?>
<?php endif; ?>
<?php comments_template( '', true ); ?>
</div>
<?php //show sidebar on the right
if( $zAlive_options['primary_sidebar_layout'] == 1 ) { get_sidebar(); }
?>
<?php get_footer(); ?>

اون دوتا تابع رو از کجا باید حذف کنم؟

لینک به ارسال

content.php


<?php
/**
* content template : detailed
*/
global $zAlive_options;
?>

<h1 class="entry-title"><?php the_title(); ?></h1>
<?php get_template_part( 'template/entry-meta-primary', 'singular' ); ?>
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="content-pager clearfix"><span class="pager_text">' . __( 'Pages: ', 'zAlive' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
</div>
<?php get_template_part( 'template/entry-meta-secondary' ); ?>
<?php if( $zAlive_options['show_post_url'] == true ) : ?>
<?php get_template_part( 'template/entry-meta-tertiary' ); ?>
<?php endif; ?>

لینک به ارسال

content.php


<?php
/**
* content template : detailed
*/
global $zAlive_options;
?>

<h1 class="entry-title"><?php the_title(); ?></h1>
<?php get_template_part( 'template/entry-meta-primary', 'singular' ); ?>
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="content-pager clearfix"><span class="pager_text">' . __( 'Pages: ', 'zAlive' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
</div>
<?php get_template_part( 'template/entry-meta-secondary' ); ?>
<?php if( $zAlive_options['show_post_url'] == true ) : ?>
<?php get_template_part( 'template/entry-meta-tertiary' ); ?>
<?php endif; ?>

دوست عزیز ظاهراً قالب خودش امکان غیرفعال کردن این قسمت رو در تنظیماتش داره ولی بازم فکر کنم با حذف خط های زیر کارتون راه بیفته :


<?php if( $zAlive_options['show_post_url'] == true ) : ?>
<?php get_template_part( 'template/entry-meta-tertiary' ); ?>
<?php endif; ?>

  • امتیاز 1
لینک به ارسال

دوست عزیز ظاهراً قالب خودش امکان غیرفعال کردن این قسمت رو در تنظیماتش داره ولی بازم فکر کنم با حذف خط های زیر کارتون راه بیفته :


<?php if( $zAlive_options['show_post_url'] == true ) : ?>
<?php get_template_part( 'template/entry-meta-tertiary' ); ?>
<?php endif; ?>

این قسمت برای لینک موضوع هست که پایین هر پست نمایش داده میشد که توی تنظیمات هم میشد غیرفعالش کرد ولی ربطی به نویسنده و تاریخ نداره

لینک به ارسال

نام نویسنده و تاریخ ارسال مطلب هم توی صفحه اصلی هست هم ادامه مطلب.

شما از هر دو می خواید حذفش کنید؟

  • امتیاز 1
لینک به ارسال

اون قالبی که پیوست کردم اسم نویسنده و تاریخ رو ازش حذف کردم.

ویرایش شده توسط Ghaem
  • امتیاز 2
لینک به ارسال

توی پوشه template فایل های entry-meta-primary.php و entry-meta-primary-page.php خطوط:


<span class="info-date info-icon entry-date date updated"><?php the_time( get_option( 'date_format' ) ); ?></span>
<span class="info-author info-icon visible-desktop vcard author"><cite class="fn"><?php _e('Author: ','zAlive');?><?php the_author_link(); ?></cite></span>

  • امتیاز 4
لینک به ارسال

لطفا برای ارسال دیدگاه وارد شوید

شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید



ورود به حساب کاربری
×
×
  • اضافه کردن...