WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Home Page Question (2 posts)

  1. vlmedia
    Member
    Posted 7 years ago #

    I have installed semi-static-front and have copied single.php, renamed it to home.php and modified style.css to allow for a wider center column. I have removed the call to get the sidebar.

    Is there a way to just include the page content (just the entry text) and not the line aboove the page content that has the comments, chrondata, permanent link et al?

    I am using WP 2.0.5 and K2 0.9.1

    Also, if I want to not use the default header, currently the template I have for home.php calls for <?php get_header(); ?> . Is there a way to customize the header so that a different header shows from within home.php (which is also my index page by the way since WP is installed in the root)? I'd like to keep the existing header throughout the site but have a different one for the front page/ index page.

    Thanks

  2. Kafkaesqui

    Posted 7 years ago #

    You could try editing your new home.php and where it has:

    <?php include (TEMPLATEPATH . '/theloop.php'); ?>

    change it to:

    <?php the_post(); ?>
    <h3><?php the_title(); ?></h3>
    <?php the_content(); ?>

    Note to future readers: The above include is an element of the default K2 theme's templates. It is not a 'standard' WordPress theming feature.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags