Support » Fixing WordPress » Add Page Template to Theme

  • I’m new to all of this and I’m trying to add a new page template to my theme. I’ve created the template (I think), but how do I add it to my theme so it’s visible in my page template drop down list?

Viewing 7 replies - 1 through 7 (of 7 total)
  • did you follow the instructions in http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    if it is about uploading the new template file, you will need to use FTP http://codex.wordpress.org/FTP_Clients

    Thread Starter perry41

    (@perry41)

    Yes, at least I thought I followed the instructions, but now that I figured out where to upload the file to, when I preview the page it only shows the code script. So, now I’m trying to figure out which php file I need to alter in order to display the page correctly. I want to have secondary pages that look like the home page, but don’t have the big image slider at the top. Any idea which php file I need to alter to make the template?

    Thread Starter perry41

    (@perry41)

    Here’s a link to the site, not sure that will help in this case.

    a link to a page using the template would be more useful; it might also help if you post the full code of your page template (please use the pastebin http://codex.wordpress.org/Forum_Welcome#Posting_Code )

    for details, you will need to contact the developer/supplier of your theme, as this forum only supports themes from http://wordpress.org/extend/themes/

    Thread Starter perry41

    (@perry41)

    Here’s a link to the sample page. Any idea what I need to remove to stop the image slider from showing up on a page?

    Any idea what I need to remove to stop the image slider from showing up on a page?

    no – you will need to contact the theme’s developer or provider for support.

    deleted

    (@thecellarroom)

    I’m confused, you want to create a custom page template, so why have you include code that you now want to remove.

    you need to create a php file and upload it to your theme folder
    the page needs to have this in it.

    <?php
    /*
    Template Name: Custom page template name
    */
    ?>

    you can then add some content below the ?> with whatever you need.

    you then create a page in WordPress and set the default template to this file.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add Page Template to Theme’ is closed to new replies.