WordPress.org

Ready to get started?Download WordPress

Forums

Partially non-changing frontpage? (6 posts)

  1. ptorning
    Member
    Posted 8 years ago #

    Hello,

    Great program. Very impressive.

    I hvae one requirement and I am not sure if it is available in any templates. I would like a frontpage with a section that does not move. At the moment, the topmost item on frontpages is the last blog. I would like to keep a description of the site as the topitem with recent blogs underneath.

    Is anyone aware of a template that can do that,or, a setting in the program? I've searched everywhere without success.

    Thankyou
    Peter

  2. katesgasis
    Member
    Posted 8 years ago #

    YOu can put this snippet in your index.php before the wp loop:

    <?php if(is_home()): ?>
    <div class="descr">
    Some description here.
    </div>

    <?php endif; ?>

  3. silpstream
    Member
    Posted 8 years ago #

    Peter,

    Not sure which theme template you are using, but you should go to your theme directory and edit the index.php file for the theme you use. Put the static stuff you want before the <?php if (have_posts()) : ?> portion.

    Cheers!
    Chris

  4. katesgasis
    Member
    Posted 8 years ago #

    You need the is_home or else it will appear in all your pages.

  5. ptorning
    Member
    Posted 8 years ago #

    Thankyou both for your prompt responses.

    I'll try them.

    I am using Water 1.0

    Regards
    Peter

  6. ptorning
    Member
    Posted 8 years ago #

    Thankyou all for you help.

    Peter

Topic Closed

This topic has been closed to new replies.

About this Topic