WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing the Date from Pages - inove theme (7 posts)

  1. zacnboat
    Member
    Posted 5 years ago #

    I want to remove the creation date from the top of each page. Currently it is displaying the date and an icon on each page, and I'm trying to use this theme as a CMS for a standard website.

    Essentially I'm taking out all the extras and this is the only thing I'm having trouble finding and eliminating from the page CSS.

    Any direction would be helpful.

    Thanks!

  2. ghaib
    Member
    Posted 5 years ago #

    Look for this in your theme (in index.php and single.php):

    <?php the_time('F jS, Y') ?>

    ...and remove it :)

  3. zacnboat
    Member
    Posted 5 years ago #

    Thanks ghaib. You steered me in the right direction.

    I actually ended up changing the page.php (as the site I'm managing will not be using tradition posts but static pages maintained using the WP backend.)

    The line I removed was the following from this theme's page.php:

    <span class="date"><?php the_modified_time(__('F jS, Y', 'inove')); ?></span>

    Removing this line eliminates the report at the top of the page that provides a date of page creation. I also deactivated comments on all pages and removed the comments not allowed message.

    This effectively turned this theme with WP into a very clean and presentable CMS with static web pages managed using the WP backend engine. Brilliant stuff!

    Thanks for your help! Another success story for the WP community.

  4. kjagen
    Member
    Posted 5 years ago #

    Where did you do this? I only got

    <?php get_header(); ?>
    <?php include('templates/page.php'); ?>
    <?php get_footer(); ?>

    I want to remove almost everything on the pages. Just static content

  5. ketso
    Member
    Posted 5 years ago #

    @ kjagen: Wrong file. As you se, you have to go into "templates/" to get page.php for this. There you have it.

  6. kjagen
    Member
    Posted 5 years ago #

    Yes. I know now. Quite a huuge theme.

  7. kjagen
    Member
    Posted 5 years ago #

    A small proble, I edited the feedback option on pages a while ago. I can?t remember how I did it, in the code or as a option in the dashbord. I`d like to have the comment option on some pages. Is that possible=

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags