WordPress.org

Ready to get started?Download WordPress

Forums

Removing posts and coments TWENTY ELEVEN (5 posts)

  1. flutteraaron
    Member
    Posted 1 year ago #

    Hello :)

    I am trying to make my home page into a static html page not a blog.
    Can anyone please assist me with the code to delete all of the info under the menu bar? The post and comment section etc?

    Here is my site:
    http://www.yogagypsy.com

    THANK YOU!

    Aaron

  2. keysuuh
    Member
    Posted 1 year ago #

    I believe you have to create a new file and name it front-page.php or home.php whatever desired. add the page template tag at the top of the file.

    EX//

    <?php /* Template name: Home */ ?>
    <?php get_header(); ?>
    <--CONTENT GOES HERE-->
    <?php get_footer(); ?>

    - Create 2 new pages in your wordpress dashboard, Home and Posts.

    - On right hand side under "Page Attributes" of each new page Select the "Home" as a Page Template, do the same for "Posts" page...

    Also, when you go to Settings >> Reading Settings
    be sure that you have your new "Home" page selected as the front page.

  3. keysuuh
    Member
    Posted 1 year ago #

    Edited my answer :p

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

  5. flutteraaron
    Member
    Posted 1 year ago #

    Thank you:) I really appreciate this!

    Aaron

Topic Closed

This topic has been closed to new replies.

About this Topic