How can i remove the calendar icon from my posts/pages? (8 posts)

  1. dpakman91
    Posted 7 years ago #

    I want to NOT show the calendar icon on my posts, and also NOT show the message that says "posted under uncategorized by admin" on the following page and other pages as well:


    how can i do it?

  2. MichaelH
    Posted 7 years ago #

    A link to where the theme can be downloaded will help. Thanks.

  3. dpakman91
    Posted 7 years ago #

  4. dpakman91
    Posted 7 years ago #

    also, another question is, how can i only have SOME of the pages show under "pages" in the right sidebar, and not ALL of them?

    the same questions applied for in the header. i'd really just like to have SOME of the things show up there, but not every single one.

  5. MichaelH
    Posted 7 years ago #

    In your theme's index.php file you would delete this line to get rid of the calendar icon as you call it.

    <?php the_time('M'); ?><br /><span class="day"><?php the_time('d'); ?></span></div>

    and to get rid of the "Posted under", delete:

    Posted under <?php the_category(', '); ?>

    Getting rid of 'some' of the Pages in your sidebar would require using the exlcude= parameter for the template tag, wp_list_pages(). So, in your theme's sidebar.php file, change
    <?php wp_list_pages('title_li='); ?>
    <?php wp_list_pages('exclude=7,8&title_li='); ?>
    the above excludes page ID 7 and 8.

    And of course for Pages in the header, look at header.php and the use of wp_list_pages there.

    Editing Files
    Stepping Into Templates
    Stepping Into Template Tags

    Please make a backup of your files before changing things.

  6. dpakman91
    Posted 7 years ago #

    i think for what i want to do, it might make more sense to ONLY INCLUDE the pages i want on both the sidebar and header rather than have to EXCLUDE the ones i don't want. how can i do that?

  7. dpakman91
    Posted 7 years ago #

    also....i removed those two sections from the theme's index.php file, but it didn't remove the calendar icon, nor the "posted under." why might it not have? i definitely selected "update" after making the changes, and confirmed the pieces of code were gone.

  8. dpakman91
    Posted 7 years ago #

    anybody on this one?

Topic Closed

This topic has been closed to new replies.

About this Topic