• the home page has things like “comments and catogory”.. i dont want them.. what should i delete in this index.php. PLease edit it and give. thanks in advance
    Aravind

    <?php ob_start(); ?>

    <?php get_header(); ?>

    <div id=”content”>

    <!– pages –>
    <?php if (is_page() and ($notfound != ‘1’)) : ?>

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

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”<?php _e(‘Read’,TEMPLATE_DOMAIN); ?> <?php the_title(); ?>”><?php the_title(); ?></h2>

    <div class=”entry”>
    <?php the_content(‘<span class=”readmore”>’.__(‘Read the rest of this entry »’,TEMPLATE_DOMAIN).'</span>’); ?>
    </div>
    </div>

    <?php if ($user_ID) : ?>
    <h3><?php _e(‘Actions’,TEMPLATE_DOMAIN); ?></h3>
    <ul class=”postmetadata”>
    <li class=”with_icon”><img class=”icon” src=”<?php echo get_bloginfo(‘stylesheet_directory’) ?>/images/icons/edit-icon-16×16.gif” alt=”edit” /> <?php edit_post_link(__(‘Edit’,TEMPLATE_DOMAIN),”,”); ?>

    <?php endif; ?>

    <?php comments_template(); ?>

    <?php endwhile; ?>

    <!– blog –>
    <?php elseif (have_posts()) : ?>

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

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <div class=”entry”>
    <?php the_content(‘<span class=”readmore”>’.__(‘Read the rest of this entry »’,TEMPLATE_DOMAIN).'</span>’); ?>
    </div>

    <?php edit_post_link(__(‘Edit’,TEMPLATE_DOMAIN), ‘<small class=”postmetadata”>’.__(‘Edit’,TEMPLATE_DOMAIN).’ : ‘, ‘</small>
    ‘); ?>

    <small class=”postmetadata”><?php _e(‘Comments’,TEMPLATE_DOMAIN); ?> : <?php comments_popup_link(__(‘No Comments »’,TEMPLATE_DOMAIN), __(‘1 Comment »’,TEMPLATE_DOMAIN), __(‘% Comments »’,TEMPLATE_DOMAIN)); ?></small>

    <small class=”postmetadata”><?php _e(‘Categories’,TEMPLATE_DOMAIN); ?> : <?php the_category(‘, ‘) ?></small>
    <?php if(function_exists(‘the_bunny_tags’)) : ?>

    <small class=”postmetadata technorati_tags”>
    <?php the_bunny_tags(‘<span class=”technorati_tags”>Tags : </span>’, ”, ‘, ‘); ?>
    </small>
    <?php endif; ?>

    </div>

    <hr style=”display:none;”/>

    <?php endwhile; ?>

    <p class=”navigation”>
    <span class=”alignleft”><?php next_posts_link(__(‘« Previous Entries’,TEMPLATE_DOMAIN)) ?></span>
    <span class=”alignright”><?php previous_posts_link(__(‘Next Entries »’,TEMPLATE_DOMAIN)) ?></span>
    </p>

    <!– nothing found –>
    <?php else : ?>
    <div class=”post” id=”post-none”>
    <h2 class=”center”><?php _e(‘Not found’,TEMPLATE_DOMAIN); ?></h2>
    <p class=”center”><?php _e(“Sorry, but you are looking for something that is not here”,TEMPLATE_DOMAIN); ?></p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>
    </div>
    <?php endif; ?>

    <!– homepage –>

    <?php if(function_exists(‘yy_is_home’)) : ?>

    <?php if(yy_get_lang()==”fr_FR”) : ?>
    <?php if(yy_is_home()==true) : ?>
    <hr/>

    <?php if(function_exists(‘c2c_get_recent_posts’)) : ?>
    <div class=”highlight_box” id=”post-last-works”>
    <h2><?php _e(‘Last works’,TEMPLATE_DOMAIN); ?></h2>

      <?php c2c_get_recent_posts(3, ‘

    • %post_URL%
      %post_excerpt_short%
    • ‘, ‘5’); ?>

    </div>
    <?php endif; ?>

    <?php if(function_exists(‘c2c_get_recent_posts’)) : ?>
    <div class=”highlight_box” id=”post-last-news”>
    <h2><?php _e(‘Last news’,TEMPLATE_DOMAIN); ?></h2>

      <?php c2c_get_recent_posts(3, ‘

    • %post_URL%
      %post_excerpt_short%
    • ‘, ‘4 21’); ?>

    </div>
    <?php endif; ?>

    <?php endif; ?>

    <?php else : ?>
    <?php if(yy_is_home()) : ?>
    <hr/>

    <?php if(function_exists(‘c2c_get_recent_posts’)) : ?>
    <div class=”highlight_box” id=”post-last-works”>
    <h2><?php _e(‘Last works’,TEMPLATE_DOMAIN); ?></h2>

      <?php c2c_get_recent_posts(3, ‘

    • %post_URL%
      %post_excerpt_short%
    • ‘, ’23’); ?>

    </div>
    <?php endif; ?>

    <?php if(function_exists(‘c2c_get_recent_posts’)) : ?>
    <div class=”highlight_box” id=”post-last-news”>
    <h2><?php _e(‘Last news’,TEMPLATE_DOMAIN); ?></h2>

      <?php c2c_get_recent_posts(3, ‘

    • %post_URL%
      %post_excerpt_short%
    • ‘, ‘9 24’); ?>

    </div>
    <?php endif; ?>

    <?php endif; ?>

    <?php endif; ?>

    <?php endif; ?>

    </div>

    <hr/>

    <!– sidebar –>
    <?php get_sidebar(); ?>

    <br style=”clear:both” /><!– without this little
    NS6 and IE5PC do not stretch the frame div down to encopass the content DIVs –>
    </div>

    <!– footer –>
    <?php get_footer(); ?>

    <? ob_end_flush();?>

Viewing 1 replies (of 1 total)
  • Delete <small class="postmetadata"><?php _e('Comments',TEMPLATE_DOMAIN); ?> : <?php comments_popup_link(__('No Comments ?',TEMPLATE_DOMAIN), __('1 Comment ?',TEMPLATE_DOMAIN), __('% Comments ?',TEMPLATE_DOMAIN)); ?></small> to remove the comment link.

    Delete <small class="postmetadata"><?php _e('Categories',TEMPLATE_DOMAIN); ?> : <?php the_category(', ') ?></small> to remove the categories

    Delete <?php comments_template(); ?> to remove the comment form.

    And please don’t post huge chunks of code here. For larger blocks of code, consider using the WordPress pastebin. It makes life easier for everyone.

Viewing 1 replies (of 1 total)
  • The topic ‘editing home page’ is closed to new replies.