رفتن به مطلب

حذف تصویر شاخص


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

سلام

چطوری میتونم تصویر شاخص رو از مطلب وردارم

یعنی نمیخوام تصویر شاخص حذف شه

میخوام تصویر شاخص از توی مطلب حذف شه

لینک به ارسال

ئنبال كد زير توي index و single باشيد

مشابه زياد هست از اين كد


<?php if(has_post_thumbnail()):
the_post_thumbnail('name_thumbs');
endif;?>

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

همچین کدی نبود:


<?php if (is_archive()) $post_number = get_option('aggregate_archivenum_posts');
if (is_search()) $post_number = get_option('aggregate_searchnum_posts');
if (is_tag()) $post_number = get_option('aggregate_tagnum_posts');
if (is_category()) $post_number = get_option('aggregate_catnum_posts'); ?>
<?php get_header(); ?>
<div id="main-content" class="clearfix">
<div id="left-area">
<?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>
<div id="entries">
<?php if ( is_active_sidebar( '468_top_area' ) ) { ?>
<?php if ( !dynamic_sidebar('468_top_area') ) : ?>
<?php endif; ?>
<?php } ?>

<?php
global $query_string;
$i = 0;
if (is_category()) query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat");
else query_posts($query_string . "&showposts=$post_number&paged=$paged");
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $i++; ?>
<?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
<?php } ?>
<?php else : ?>
<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
<?php endif; wp_reset_query(); ?>

<?php if ( is_active_sidebar( '468_bottom_area' ) ) { ?>
<?php if ( !dynamic_sidebar('468_bottom_area') ) : ?>
<?php endif; ?>
<?php } ?>
</div> <!-- end #entries -->
</div> <!-- end #left-area -->
<?php get_sidebar(); ?>

<?php get_footer(); ?>


<?php if (is_archive()) $post_number = get_option('aggregate_archivenum_posts');
if (is_search()) $post_number = get_option('aggregate_searchnum_posts');
if (is_tag()) $post_number = get_option('aggregate_tagnum_posts');
if (is_category()) $post_number = get_option('aggregate_catnum_posts'); ?>
<?php get_header(); ?>
<div id="main-content" class="clearfix">
<div id="left-area">
<?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>
<div id="entries">
<?php if ( is_active_sidebar( '468_top_area' ) ) { ?>
<?php if ( !dynamic_sidebar('468_top_area') ) : ?>
<?php endif; ?>
<?php } ?>

<?php
global $query_string;
$i = 0;
if (is_category()) query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat");
else query_posts($query_string . "&showposts=$post_number&paged=$paged");
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $i++; ?>
<?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
<?php } ?>
<?php else : ?>
<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
<?php endif; wp_reset_query(); ?>

<?php if ( is_active_sidebar( '468_bottom_area' ) ) { ?>
<?php if ( !dynamic_sidebar('468_bottom_area') ) : ?>
<?php endif; ?>
<?php } ?>
</div> <!-- end #entries -->
</div> <!-- end #left-area -->
<?php get_sidebar(); ?>

<?php get_footer(); ?>

لینک به ارسال

شرمنده آدرس فايل يادم رفت ضمينه كنم :D

www.yoursite.com/wp-content/themes/your theme /includes/entry.php

لینک به ارسال

به اینجا مراجعه کنید:

http://rokesh.ir/bul...eatured-images/

سلام

این آموزش واسه حذف کامل تصویر شاخصه که.

entry.php


<?php
$i++;
$et_is_latest_post = $paged == 0 && ( !is_home() || ( is_home() && $i <= 2 ) );
?>
<div class="post entry clearfix<?php if ( $et_is_latest_post ) echo ' latest'; ?>">
<?php
$thumb = '';
$width = $et_is_latest_post ? 130 : 67;
$height = $et_is_latest_post ? 130 : 67;
$classtext = 'post-thumb';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
$thumb = $thumbnail["thumb"];
?>

<?php if($thumb <> '' && get_option('aggregate_thumbnails_index') == 'on') { ?>
<div class="thumb">
<a href="<?php the_permalink(); ?>">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
<span class="overlay"></span>
</a>
</div> <!-- end .post-thumbnail -->
<?php } ?>

<h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
<?php if (get_option('aggregate_blog_style') == 'on') the_content(''); else { ?>
<?php
$et_excerpt_length = $et_is_latest_post && is_home() ? 215 : 80;
if ( !is_home() ) $et_excerpt_length = 140;
?>
<p><?php truncate_post($et_excerpt_length); ?></p>
<?php }; ?>
<a href="<?php the_permalink(); ?>" class="more"><span><?php _e('Read More','Aggregate'); ?></span></a>
</div> <!-- end .post-->

bedesign.ir

لینک به ارسال

من فقط میخوام تصویر شاخص رو تو مطالب سایتم نمایش نده و فقط تو اسلایدر و بیرون مطلب نشون بده و از داخل مطالب حذف شه

لینک به ارسال

من فقط میخوام تصویر شاخص رو تو مطالب سایتم نمایش نده و فقط تو اسلایدر و بیرون مطلب نشون بده و از داخل مطالب حذف شه

محتویات فایل entry.php رو بذارین لطفا.

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

گذاشتم دیگه:


<?php
$i++;
$et_is_latest_post = $paged == 0 && ( !is_home() || ( is_home() && $i <= 2 ) );
?>
<div class="post entry clearfix<?php if ( $et_is_latest_post ) echo ' latest'; ?>">
<?php
$thumb = '';
$width = $et_is_latest_post ? 130 : 67;
$height = $et_is_latest_post ? 130 : 67;
$classtext = 'post-thumb';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
$thumb = $thumbnail["thumb"];
?>
<?php if($thumb <> '' && get_option('aggregate_thumbnails_index') == 'on') { ?>
<div class="thumb">
<a href="<?php the_permalink(); ?>">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
<span class="overlay"></span>
</a>
</div> <!-- end .post-thumbnail -->
<?php } ?>
<h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
<?php if (get_option('aggregate_blog_style') == 'on') the_content(''); else { ?>
<?php
$et_excerpt_length = $et_is_latest_post && is_home() ? 215 : 80;
if ( !is_home() ) $et_excerpt_length = 140;
?>
<p><?php truncate_post($et_excerpt_length); ?></p>
<?php }; ?>
<a href="<?php the_permalink(); ?>" class="more"><span><?php _e('Read More','Aggregate'); ?></span></a>
</div> <!-- end .post-->

لینک به ارسال

بنظرم تو تنظیمات پوسته شما گزینه‌ای برای نمایش ندادن تصویر شاخص هست با این حال میتونین این کدها رو از فایل entry.php‌ حذف کنین:


<div class="thumb">
<a href="<?php the_permalink(); ?>">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
<span class="overlay"></span>
</a>
</div> <!-- end .post-thumbnail -->

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

من اینکار رو کردم ولی کلا تصویر شاخص حذف شد

من میخوام تصویر شاخص رو تو ادامه مطلب نشون نده

لینک به ارسال

اگر کد مربوط به single باشد . باید درست کار کند


<?php
$i++;
$et_is_latest_post = $paged == 0 && ( !is_home() || ( is_home() && $i <= 2 ) );
?>
<div class="post entry clearfix<?php if ( $et_is_latest_post ) echo ' latest'; ?>">
<?php
$thumb = '';
$width = $et_is_latest_post ? 130 : 67;
$height = $et_is_latest_post ? 130 : 67;
$classtext = 'post-thumb';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
$thumb = $thumbnail["thumb"];
?>
<?php if((!is_single()) && $thumb <> '' && get_option('aggregate_thumbnails_index') == 'on') { ?>
<div class="thumb">
<a href="<?php the_permalink(); ?>">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
<span class="overlay"></span>
</a>
</div> <!-- end .post-thumbnail -->
<?php } ?>
<h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
<?php if (get_option('aggregate_blog_style') == 'on') the_content(''); else { ?>
<?php
$et_excerpt_length = $et_is_latest_post && is_home() ? 215 : 80;
if ( !is_home() ) $et_excerpt_length = 140;
?>
<p><?php truncate_post($et_excerpt_length); ?></p>
<?php }; ?>
<a href="<?php the_permalink(); ?>" class="more"><span><?php _e('Read More','Aggregate'); ?></span></a>
</div> <!-- end .post-->

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

اینکار رو هم کردم قالب ادامه مطلب ریخت بهم

یه کار دیگه نمیشه کرد؟:

اندازه تصویر شاخص رو چطوری میتونم عوض کنم

اگه اینکار رو کنم دیگه نیازی به حذفش نیس

لینک به ارسال

شما دقيقا چه اندازه اي مد نظرتونه ؟

توي برگه single.php بگرديد دنبال


<div id="entries">

و تغييرش بديد به


<div id="entries" class="single">

در فايل style.css اضافه كنيد


.single .post-thumb {
width : 200px;
height : 300px;
min-width : 200px;
min-height : 300px;
max-width : 200px;
max-height : 300px;
}

به جاي 200 و 300 مقدار طول و ارتفاع مناسب را بگذاريد

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

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

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



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