• Hello

    I’m building a static homepage and I don’t want the dates to appear after every post, on every side. I’ve tried the plugin “Date Exclusion” but it doesn’t seem to work.

    I’ve searched the forum but haven’t find a way to do it for this specific theme.

    Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Typcially you have to edit a theme’s index.php file and delete references to either the template tag, the_date(), or the_time().

    from this code under index.php:

    <p class=”meta”>Posted by <?php the_author() ?> on <?php the_time(‘F jS, Y’) ?> under <?php the_category(‘, ‘) ?>
    <?php the_tags(‘Tags: ‘, ‘, ‘, ”); ?>
     • 
    <?php edit_post_link(‘Edit’, ”, ‘ • ‘); ?>
    <?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></p>

    remove this code <?php the_time(‘F jS, Y’) ?>

    I would also like to remove this, and I have seen that this works for the date and time. (removing <?php the_time(‘F jS, Y’) ?>)
    But I want to remove everything on this line including the calendar icon and the Comment and Edit verbiage and icons on the right side of this line.
    Then I would like to shift the test from the comment up to fill this line so there is not a blank line up there where this other stuff was.
    Thanks much!

    I meant to type “Then I would like to shift the

      text

    from the comment…

    Any idea how to remove the date info from some (most) categories, but leaving it for others? I’m posting pieces from my portfolio as “posts” and don’t want the date on them, but I’m also blogging, where I do want the dates. I have already removed the date/time code from index.php exactly as described…now I need the category “blog” to build pages from a template other than index.php.

    In Index.php, remove <?php the_time(__(‘F jS, Y’, ‘inove’)) ?> from the code: <div class=”info”><span class=”date”><?php the_time(__(‘F jS, Y’, ‘inove’)) ?></span>
    <div class=”act”>

    That will remove the date from the Posts but not, irritatingly, from Pages – the gist of my subject of yesterday which I still can’t solve.

    Removing : <?php comments_popup_link(__(‘No comments’, ‘inove’), __(‘1 comment’, ‘inove’), __(‘% comments’, ‘inove’)); ?></span><?php edit_post_link(__(‘Edit’, ‘inove’), ‘<span class=”editpost”>’, ‘</span>’); ?>

    from after <span class=”comments”> will remove the rest of the text and one of the icons.

    In style.css, go down to /* main START */

    A few lines down is a list:
    .post .date,
    .post .tags,
    .post .author,
    .post .categories,
    .post .editpost,
    .post .readingblinds,
    .post .comments,
    .post .addcomment,
    .post .editlinks {
    background:url(img/icons.gif) no-repeat;
    padding-left:22px;
    height:16px;
    line-height:16px;
    display:block;
    font-size:11px;
    }

    Remove .post .date, and
    .post .editpost,
    .post .readingblinds,
    .post .comments,
    .post .addcomment,

    and all the icons on the top line disappear. They also disappear on ‘Pages’ but other text doesn’t. (Note: deleting img/icons.gif removes all the icons, so it’s not a good idea.)

    also under /* main START */ there is a code:
    .post .info {
    margin:5px; changing the 5 to -10 pushes the line up. However, this is also affects text on Pages which then starts to overlap with the date etc. As yet, I can’t find the code that is specific for the date,go to comments,leave comment and edit on ‘page’
    Any further ideas, we’re almost there!

    The code specifically for pages is of course in the templates/page.php file. In that file, reference to the date, leave comments etc can be deleted, leaving the page clean of unwanted stuff. This works for both a 2-columned page and a 1-column page since both page.php and page-without-sidebar.php call up templates/page.php

    Rather than outright deleting or removing the code, you can also try to comment it out. That way, if something else inadvertently breaks, you can come back and uncomment the code. Just thought I’d throw in my 2 cents.

    You comment out code by enclosing it thusly:

    <!– and –>

    In the example I just gave you, the word “and” is commented out.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove dates from posts and sides with theme Inove’ is closed to new replies.