WordPress.org

Ready to get started?Download WordPress

Forums

Custom Page Template Issue (11 posts)

  1. mariatao8
    Member
    Posted 7 months ago #

    Hi all,

    Under Page -> Attributes, I could not find the drop-down menu for templates. I wanted to add my own design for the page, which I have used FTP to transfer a PHP file to wp-content/themes/ under a directory called default.

    WordPress has explained on the link below that template list will show only if there is at least one custom page template file in my active theme's folder. I was wondering how could I check for the active theme's folder?
    http://codex.wordpress.org/Page_Templates#Selecting_a_Page_Template

    I thought another possible reason might be my php file is somehow incorrect. I added the line below to my home.html, and saved as php file
    <?php /* Template Name: Home
    */?>

    Could anybody help me with using my own design for pages?

    Thanks in advance.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    What theme are you using? Where did you download it from?

  3. mariatao8
    Member
    Posted 7 months ago #

    I did not download a theme, I was designing my own page from scratch.

    Thanks

  4. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Have you reviewed Theme Development?

  5. mariatao8
    Member
    Posted 7 months ago #

    Thank you, I will read into it and edit mine according to the standard. Would it be safe for me to assume that if the coding standard is met, WP would be able to recognize it and thus show the Custom theme option under pages?

    Thank you

  6. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Correct :-)

  7. mariatao8
    Member
    Posted 7 months ago #

    I had tried to use a sample php file provided by WP (link here: http://codex.wordpress.org/Author_Templates )

    But after I had saved a copy under wp-content/themes, I still could not see the template drop-down.

    Would you please help me on that one?

    Thank you

  8. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Why are you looking at Author Templates? You need to look custom page templates.

  9. mariatao8
    Member
    Posted 7 months ago #

    I was trying to get a php file that complies with WP standards, so I could try to see how the custom template would work with a good php file.

    Knowing that php file will take me days to improve, I just wanted to make sure after I had edited my php file, I could successfully use this on the page template.

    Thank you

  10. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    You chose a really bad example. Check out the link I posted above and then try examining the page.php default template in, say, the 2013 theme.

  11. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    I'd also suggest reviewing http://codex.wordpress.org/Theme_Review

Reply

You must log in to post.

About this Topic