Forums

Where (which DIR) do I place my own template for a page to use? (14 posts)

  1. Smoolean
    Member
    Posted 7 years ago #

    It seems wherever I place a file I want to use as a template, it won't show up in the dropdown box when composing a page. Anyone have any ideas whats up? Or, where should I put these pages, what directory?

  2. moshu
    Member
    Posted 7 years ago #

    It should be in your theme's directory.
    Do you have a (default) page.php template in your theme?
    To get the dropdown menu for Page templates in the Write Page area, you need to have
    a) the default page.php template
    b) AND another template

  3. Michael Bishop

    Posted 7 years ago #

    what version of WP are you using?

  4. Smoolean
    Member
    Posted 7 years ago #

    Moshu, how would I make "another template." I put a .php file in the same directory, but it's not showing up.

    miklb, I'm using WP 2.0, with K2 as the theme.

  5. Michael Bishop

    Posted 7 years ago #

    I had a problem with permissions on my page templates in 2.0, try chmod your files to a higher permission level and see if they show up.

    You are using the header for a custom page template, yes?

  6. moshu
    Member
    Posted 7 years ago #

    1. The official support site for K2 is this:
    http://flickr.com/groups/binarybonsai/
    Sorry.

  7. Michael Bishop

    Posted 7 years ago #

    actually, the NEW official K2 support is at http://www.binarybonsai.com/forums/

  8. moshu
    Member
    Posted 7 years ago #

    Well, those who are using it should know better than me ;)

  9. Smoolean
    Member
    Posted 7 years ago #

    The thing is, I tried this on my other domain, with WP2, without K2, just the default Kubrick, and it still won't show up :(

    I bumped up it's permissions to 755 through just properties via FTP. What is chmod? Sorry if that sounds lame, but I've never quite known what that meant.

  10. Michael Bishop

    Posted 7 years ago #

    chmod is the terminal language to change permissions.

    Regardless, try 777 and see if they show up. you didn't answer the question regarding whether or not you are using the correct header for a page template.

  11. moshu
    Member
    Posted 7 years ago #

    Permissions are practically the same as chmod.
    Set permission to XXX = chmod XXX.

    For the default Page template just save your index.php as page.php
    For creating Page templates, see:
    http://codex.wordpress.org/Pages#Page_Templates

  12. Smoolean
    Member
    Posted 7 years ago #

    "you didn't answer the question regarding whether or not you are using the correct header for a page template."

    Aaaaaaaahhhhh.

    See, I'm such a newb I didn't even know you needed that. It works now, thanks so much for your patience with me.

  13. Michael Bishop

    Posted 7 years ago #

    what worked?

  14. Smoolean
    Member
    Posted 7 years ago #

    Just adding in the <?php /*
    Template Name: name
    */ ?>

    Was that simple!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.