WordPress.org

Ready to get started?Download WordPress

Forums

Permanent Text on Home/Posts Page (8 posts)

  1. jerrymcg
    Member
    Posted 5 years ago #

    Greetings,
    I'm a new user and I can't seem to find this.....

    How do I add text to the home page that will permanently remain above the posts ?

    Thanks,
    Jerry

  2. scribblerguy
    Member
    Posted 5 years ago #

    If this is text that won't change that often (e.g., weeks, months, or longer), then the simplest solution would be to hard code your message into your theme.

    Though, this plugin might have the functionality you're looking for: Awsom News Announcement.

  3. svaldesm
    Member
    Posted 5 years ago #

    Is there any other solution or any other plugin nowadays?

    Thanks

  4. figaro
    Member
    Posted 5 years ago #

    Sticky post?

  5. svaldesm
    Member
    Posted 5 years ago #

    That's only for homepage or for every pages? I just want to add some text to my homepage.

    Thanks

  6. figaro
    Member
    Posted 5 years ago #

    I don't use it, so am not sure, but I think it's only for homepage. You could test it and see...right? If you are using 2.7, just create a post and under visibility click 'stick this post to the font page' and then test it.

  7. svaldesm
    Member
    Posted 5 years ago #

    Hmm it works, but not as I wish. The thing's that my post's width it's different to this home-section width...so it ain't what I'm looking for. Anyway, thanks for the suggestion.

    Any other idea?

  8. tom4ski
    Member
    Posted 5 years ago #

    I've found this solution:

    <?php if (is_home()) { ?>
    YOUR TEXT
    <?php } ?>

    or to style it like your post

    <?php if (is_home()) { ?>
    <div class=post>
    <h2>Heading</h2>
    YOUR TEXT
    </div>
    <?php } ?>

    Just paste this code into index.html or home.php before posts.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.