Forums

How do I choose to use a template? (13 posts)

  1. ninas
    Member
    Posted 3 years ago #

    When i go to new page, all i have are my attributes, custom fields, publish, discussion and content box areas....

    My template is uploaded in my current theme folder.

  2. Roy_Mi6
    Member
    Posted 3 years ago #

    Hi Ninas,

    You change your template on a gobal setting - not per page or post. Although this might be possible with a plugin? Anyone?

    Anyway in WP2.7 to change the template go to Appearance -> Themes

    You can then select your theme which will bring it up in a popup. Click the "Activate Theme" in the top right of this to activate your theme.

    If you template doesnt appear in the list you can scroll down a little on this page and it can sometimes tell you what is wrong.

    Roy

  3. ninas
    Member
    Posted 3 years ago #

    Oops, I guess I didn't make that very clear.
    I'm trying to use a page template, to be specific, for this

  4. Roy_Mi6
    Member
    Posted 3 years ago #

    Ah right :)

    When editing a page go to Attributes -> Template

    Appears below the Publish section on the right hand side. These panels can be expanded and collapsed by clicking on their titles so you might have accidentally hidden it if you cant see the options.

    Roy

  5. ninas
    Member
    Posted 3 years ago #

    Screenshot
    Am I having eye problems...... ? I don't see it.

    Sorry/thanks. :)

  6. Roy_Mi6
    Member
    Posted 3 years ago #

    How bizarre!

    Mine appears between "Parent" and "Order" saying

    "Template: Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you’ll see them above."

    And allows you to select from a drop down list of all the page templates in your theme directory

    I thought it might have been that the page template wasn't working but it works fine on my site and appears in the list...

    Have you put the template in your current theme's folder?

    "/wp-content/themes/YourTheme/"

    Roy

  7. ninas
    Member
    Posted 3 years ago #

    Hi, Roy. Yep, I know what you mean, I had that previously with another site when I used 2.6... And I'm positive I put the template in my current theme's folder.

  8. ninas
    Member
    Posted 3 years ago #

    Anyone have the same problem? *tear*

  9. Roy_Mi6
    Member
    Posted 3 years ago #

    Sorry that I couldn't be more help ninas but I'm seriously stumped!

    Good luck on this!

    Roy

  10. ninas
    Member
    Posted 3 years ago #

    Aha, no problem, thank you for trying! :)

  11. johdah
    Member
    Posted 3 years ago #

    I added this at the top of my template and it is now possible to choose that template when editing pages:

    <?php
    /*
    Template Name: My template
    */
    ?>
  12. ninas
    Member
    Posted 3 years ago #

    ^Yeah, mine has that at the top too. -__-
    Thanks for the suggestion, though.

  13. unlox775
    Member
    Posted 2 years ago #

    K, I had the same problem and figured out how to fix it.

    I think it had to do with the fact that I renamed and totally re-wired the theme info at the top of my style.css AFTER I had already switched to it. What this did is somehow make the WP theme system think I was assigned to an invalid theme.

    To tell, go to Appearance > Editor. I got a short message that "Your theme is not valid" or something...

    All I did to fix was go to the theme chooser, re-choose my theme and it was all fine..

    good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic