Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17627

    Hi,

    Is it possible to remove the title Comments are closed. & Comments Off

    as the image

    Is it possible to replace the 09 Oct 2012 / Comments Off/ in Uncategorized/by weddingidea with the title of post in red area as the image

    #96228

    Open up includes/loop-index.php and remove following code:

    <span class='comment-container minor-meta'>
    <?php comments_popup_link("<strong>0</strong> ".__('Comments','avia_framework'),
    "<strong>1</strong> ".__('Comment' ,'avia_framework'),
    "<strong>%</strong> ".__('Comments','avia_framework'),'comments-link',
    "<strong></strong> ".__('Comments Off','avia_framework')); ?>
    </span>
    <span class='text-sep'>/</span>

    and then open up includes/comments.php and delete following line:

    <p><?php _e( 'Comments are closed.', 'avia_framework' ); ?></p>

    #96229

    thanks for help

    Is it possible to replace the 09 Oct 2012 / Comments Off/ in Uncategorized/by weddingidea with the title of post in red area as the image

    #96230

    Hi webarts2011,

    You could try replacing the entire meta content with the title but it may need a bit of css cleanup. In includes>loop-index.php find:

    <div class="blog-meta">

    <span class='post-meta-infos'>
    <span class='date-container minor-meta'><?php the_time('d M Y') ?></span>
    <span class='text-sep'>/</span>
    <span class='comment-container minor-meta'>
    <?php comments_popup_link("<strong>0</strong> ".__('Comments','avia_framework'),
    "<strong>1</strong> ".__('Comment' ,'avia_framework'),
    "<strong>%</strong> ".__('Comments','avia_framework'),'comments-link',
    "<strong></strong> ".__('Comments Off','avia_framework')); ?>
    </span>
    <span class='text-sep'>/</span>

    <?php
    $cats = get_the_category();

    if(!empty($cats))
    {
    echo '<span class="blog-categories minor-meta">'.__('in ','avia_framework');
    the_category(', ');
    echo '</span><span class="text-sep">/</span>';
    }

    $portfolio_cats = get_the_term_list( get_the_ID(), 'portfolio_entries', '', ', ','');

    if($portfolio_cats && !is_object($portfolio_cats))
    {
    echo '<span class="blog-categories minor-meta">'.__('in ','avia_framework');
    echo $portfolio_cats;
    echo '</span><span class="text-sep">/</span>';
    }

    echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    the_author_posts_link();
    echo '</span>';

    ?>

    </span>

    </div><!--end meta info-->

    Replace it with:

    <div class="blog-meta">

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

    </div><!--end meta info-->

    Regards,

    Devin

    #96231

    its not working the template after that is broken !!

    #96232

    Make sure you copy it over exactly. The second bit of code should be the only thing between the comments like this:

    <!--meta info-->
    <div class="blog-meta">

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

    </div><!--end meta info-->

    Regards,

    Devin

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

The topic ‘remove Comments are closed’ is closed to new replies.