WordPress.org

Ready to get started?Download WordPress

Forums

How to set home.php as editable page (6 posts)

  1. fernandolawl
    Member
    Posted 5 months ago #

    My homepage is made using home.php and I would like it to be editable in the Dashboard > Pages.

    When I go to Dashboard > Settings > Reading > Front page displays: Static page
    The drop down box for Front page: _______ does not display Homepage as a choice.

    Do I need to to add the following code to make it visible in the Front page drop down menu? If not, please advise what I should do.

    <?php
    /*
    	Template Name: Homepage
     */
    ?>

    Thank you!

  2. fernandolawl
    Member
    Posted 5 months ago #

    Update:
    I tried adding the following code to home.php and Homepage still does not show up at Dashboard > Settings > Reading > Front page displays: Static page
    The drop down box for Front page: _______

    <?php
    /*
    	Template Name: Homepage
     */
    ?>

    If anyone knows what to do, please let me know. Appreciate the help!

  3. WPRanger
    Member
    Posted 5 months ago #

    You need to actually create a page and then set it to use your new template.

  4. fernandolawl
    Member
    Posted 5 months ago #

    Thanks WPRanger,
    So this means, I shouldn't even bother touching index.php or creating a home.php. Is that correct?

  5. WPRanger
    Member
    Posted 5 months ago #

    You were on the right track, just create the page inside WordPress and then assign your new template to it.

  6. fernandolawl
    Member
    Posted 5 months ago #

    Thanks! I will try this.

Reply

You must log in to post.

About this Topic