WordPress.org

Ready to get started?Download WordPress

Forums

How to Add an Introductory Paragraph Before Posts (2 posts)

  1. totalgaz
    Member
    Posted 4 years ago #

    I was wondering if anyone knew of a way to be able to add an introductory paragraph about your website before the blog posts are shown. So the introduction would be in the body section. Such as this website http://www.powerhomebiz.com/ which you can see with the introduction saying "
    Welcome to Power HomeBiz Guides™
    Your source of information, tools and resources for starting, managing and growing a home business." before the featured article section.

    Do you need to write it in the html directly or is there a plugin available?

  2. Ben Casey
    Member
    Posted 4 years ago #

    there may or may not be a plugin but it is very easily done in the code.

    I will take some coding from the wordpress classic theme(included in installations)

    <?php
    get_header();
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    To insert a paragraph between the header and the post in the above code simply change it to the following:

    <?php
    get_header();
    ?>
    <p>This is my brand new shiny cool paragraph!</p>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.