رفتن به مطلب

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


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

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

لینک به ارسال

1-عنوان صحیح انتخاب کنید __ یک مشکل کوچولو__ شد عنوان ؟

2-بله میشه حذف کرد single.php قرار بدید

+عنوان ویرایش شد

لینک به ارسال

هر 2 سوال شما دورن فایل single.php قرار دارد باید دید به چه صورت تعریف شده است

ایا ابعاد بر css هستند با در functions.php و یا در همان single.php

لینک به ارسال
  • 4 ماه بعد...

گفتم بیخود مبحث نزنم .

متوجه نشدم ، چه جوری میتونم نمایش تصویر شاخص رو از داخل پست ها حذف کنم؟

یعنی خود مبحث تصویر شاخص داشته باشه اما وقتی وارد مبحث میشی دیگه دربالای مطلب تصویر شاخصش نمایش داده نشه .

:rolleyes:

ویرایش شده توسط iran4moderntalking
لینک به ارسال

کد فایل single.php رو قرار بدین تا حذف کنم

اینم محتویات single.php قالب :


<?php get_header(); ?>
<div id="content">

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

<div <?php post_class(); ?>>

<ul class="meta">
<li class="date">
<div class="day"><?php the_time('d') ?></div>
<div class="month"><?php the_time('M') ?></div>
<div class="year"><?php the_time('Y') ?></div>
</li>
<li class="author">
<div class="label"><?php _e('Posted by', 'blogo'); ?></div>
<?php the_author_posts_link(); ?>
</li>
<li class="categories">
<div class="label"><?php _e('Posted in', 'blogo'); ?></div>
<?php the_category(', ') ?>
</li>
<li class="comments<?php if ( !has_tag() ): ?> noborder<?php endif; ?>">
<div class="label"><?php _e('Discussion', 'blogo'); ?></div>
<?php comments_popup_link(); ?>
</li>
<?php if ( has_tag() ): ?>
<li class="tags last">
<div class="label"><?php _e('Tags', 'blogo'); ?></div>
<?php the_tags('', ', ', ''); ?>
</li>
<?php endif; ?>
<div class="socialButtons">
<div class="like"><iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&send=false&layout=button_count&width=300&show_faces=false&action=like&colorscheme=light&font&height=21&appId=232334746811154" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:21px;" allowTransparency="true"></iframe></div>
<div class="tweets">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
<li class="bgTop"></li>
<li class="bgBottom"></li>
</ul>

<div class="content full">
<h1><?php the_title(); ?></h1>
<div class="postImage"><?php the_post_thumbnail('medium'); ?></div>
<?php the_content(); wp_link_pages(); ?>
</div>

<div class="clear"></div>

</div>

<?php comments_template( '', true ); ?>

<?php endif; ?>

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

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

:D

ویرایش شده توسط iran4moderntalking
لینک به ارسال


<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : the_post(); ?>
<div <?php post_class(); ?>>
<ul class="meta">
<li class="date">
<div class="day"><?php the_time('d') ?></div>
<div class="month"><?php the_time('M') ?></div>
<div class="year"><?php the_time('Y') ?></div>
</li>
<li class="author">
<div class="label"><?php _e('Posted by', 'blogo'); ?></div>
<?php the_author_posts_link(); ?>
</li>
<li class="categories">
<div class="label"><?php _e('Posted in', 'blogo'); ?></div>
<?php the_category(', ') ?>
</li>
<li class="comments<?php if ( !has_tag() ): ?> noborder<?php endif; ?>">
<div class="label"><?php _e('Discussion', 'blogo'); ?></div>
<?php comments_popup_link(); ?>
</li>
<?php if ( has_tag() ): ?>
<li class="tags last">
<div class="label"><?php _e('Tags', 'blogo'); ?></div>
<?php the_tags('', ', ', ''); ?>
</li>
<?php endif; ?>
<div class="socialButtons">
<div class="like"><iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&send=false&layout=button_count&width=300&show_faces=false&action=like&colorscheme=light&font&height=21&appId=232334746811154" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:21px;" allowTransparency="true"></iframe></div>
<div class="tweets">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
<li class="bgTop"></li>
<li class="bgBottom"></li>
</ul>
<div class="content full">
<h1><?php the_title(); ?></h1>
<?php the_content(); wp_link_pages(); ?>
</div>
<div class="clear"></div>
</div>
<?php comments_template( '', true ); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

تست کنید

لینک به ارسال


<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : the_post(); ?>
<div <?php post_class(); ?>>
<ul class="meta">
<li class="date">
<div class="day"><?php the_time('d') ?></div>
<div class="month"><?php the_time('M') ?></div>
<div class="year"><?php the_time('Y') ?></div>
</li>
<li class="author">
<div class="label"><?php _e('Posted by', 'blogo'); ?></div>
<?php the_author_posts_link(); ?>
</li>
<li class="categories">
<div class="label"><?php _e('Posted in', 'blogo'); ?></div>
<?php the_category(', ') ?>
</li>
<li class="comments<?php if ( !has_tag() ): ?> noborder<?php endif; ?>">
<div class="label"><?php _e('Discussion', 'blogo'); ?></div>
<?php comments_popup_link(); ?>
</li>
<?php if ( has_tag() ): ?>
<li class="tags last">
<div class="label"><?php _e('Tags', 'blogo'); ?></div>
<?php the_tags('', ', ', ''); ?>
</li>
<?php endif; ?>
<div class="socialButtons">
<div class="like"><iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&send=false&layout=button_count&width=300&show_faces=false&action=like&colorscheme=light&font&height=21&appId=232334746811154" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:21px;" allowTransparency="true"></iframe></div>
<div class="tweets">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
<li class="bgTop"></li>
<li class="bgBottom"></li>
</ul>
<div class="content full">
<h1><?php the_title(); ?></h1>
<?php the_content(); wp_link_pages(); ?>
</div>
<div class="clear"></div>
</div>
<?php comments_template( '', true ); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

تست کنید

اصلا خود خودش بود . ممنونم درست شد :D

لینک به ارسال

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

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

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

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

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

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

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

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

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