Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #4331

    Hey there, first of all: great theme. I am having a little problem though: On the articles the date is shown on the left of each article which is great. Unfortunately this doesnt make sence for the content of my portfolio items. Is there any way to change this? I need the date on articles but i dont want it on portfolio items…

    Thanks! Best regards,

    Collins

    #45885

    Hey,

    in single.php replace following code:

    <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 -->

    with:

    <?php if(get_post_type() != 'portfolio') { ?>
    <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 -->
    <?php } ?>

    #45886

    hey,

    thanks a lot for your fast reply!! unfortunately this didnt bring the desired success. Did you check this solution? It would be great if you had a look at it again…. thank!!!!

    #45887

    I made a small syntax error – please try it again.

    #45888

    Hey, when I REPLACE the new code, i receive the following error message:

    Parse error: syntax error, unexpected T_ENDWHILE in /www/htdocs/w00cc047/testZWEI/wp-content/themes/habitat/single.php on line 80

    sorry to bother you again…

    #45889

    Hey,

    I uploaded the modified version of single.php here: http://www.mediafire.com/?zjyray2sde9jdrg – I checked my code but couldn’t find syntax errors.

    #45890

    thank you so much!!! that worked!! awesome support!

    #45891

    Glad that I could help you :)

    #45892

    Is this also possible for the newcast theme

    #45893

    Yes – open up single.php and remove following code:

    <span class="date ie6fix"><?php the_time('M d, Y') ?></span>

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

The topic ‘Remove date on portfolio item (Habitat)’ is closed to new replies.