Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4275

    Hello i had the first post stickied, so that the main feature images do not change. I was wondering if there is anyway to take out the 1st post date on the right side, and start the date on the 2nd post.

    My webpage is http://www.kartoyz.com

    #45689

    Hey,

    1) Have a look at this thread (especially the fourth post): http://www.kriesi.at/support/topic/sliderpost-work-around

    #45690

    Hi Dude,

    Thanks for the reply, i have tried this, and it did take the date out on the left, but it took out the post as well. Can you please let me know how i can just take out the date for the first post? Thanks Dude!

    #45691

    I think you can use the sticky conditional tag to solve this problem…

    Open up index.php and replace:

    <div class="entry <?php echo "entry".$counter; ?> ">
    <?php if($medium_prev_image != "") echo $medium_prev_image; ?>

    <div class="date_container">
    <span class='day'><?php the_time('d') ?></span>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>
    <?php if($k_option['single']['acc_tw'] != '') { ?>
    <div class="tweetmeme">
    <script type="text/javascript">
    tweetmeme_source = '<?php echo $k_option['single']['acc_tw']; ?>';
    tweetmeme_url = '<?php echo get_permalink() ?>';
    </script>
    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
    </div>
    <?php } ?>
    <span class='date_container_bottom'></span>
    </div><!-- end date -->

    <h1 class="siteheading">
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','habitat')?> <?php the_title(); ?>"><?php the_title(); ?>
    </a>
    </h1>

    <div class="entry-head">
    <span class="comments"><?php comments_popup_link(__('No Comments','habitat'), __('1 Comment','habitat'), __('% Comments','habitat')); ?></span>
    <span class="categories"><?php the_category(', '); ?></span>
    </div>

    <div class="entry-content">
    <?php

    the_content('<span>'.__('Read more','habitat').'</span>'); ?>
    <?php edit_post_link('Edit', '', ''); ?>
    <!--end entry-content-->
    </div>

    <!--end entry-->
    </div>

    with:

    <div class="entry <?php echo "entry".$counter; ?> ">
    <?php if($medium_prev_image != "") echo $medium_prev_image; ?>
    <?php if (!(is_sticky())) { ?>
    <div class="date_container">
    <span class='day'><?php the_time('d') ?></span>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>
    <?php if($k_option['single']['acc_tw'] != '') { ?>
    <div class="tweetmeme">
    <script type="text/javascript">
    tweetmeme_source = '<?php echo $k_option['single']['acc_tw']; ?>';
    tweetmeme_url = '<?php echo get_permalink() ?>';
    </script>
    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
    </div>
    <?php } ?>
    <span class='date_container_bottom'></span>
    </div><!-- end date -->

    <h1 class="siteheading">
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','habitat')?> <?php the_title(); ?>"><?php the_title(); ?>
    </a>
    </h1>

    <div class="entry-head">
    <span class="comments"><?php comments_popup_link(__('No Comments','habitat'), __('1 Comment','habitat'), __('% Comments','habitat')); ?></span>
    <span class="categories"><?php the_category(', '); ?></span>
    </div>

    <div class="entry-content">
    <?php

    the_content('<span>'.__('Read more','habitat').'</span>'); ?>
    <?php edit_post_link('Edit', '', ''); ?>
    <!--end entry-content-->
    </div>

    <!--end entry-->
    <?php } ?>
    </div>

    This should do the trick – if the post is sticky the date tab on the left side won’t be displayed.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Anyway to take out the 1st post date on the right side?’ is closed to new replies.