WordPress.org

Ready to get started?Download WordPress

Forums

How Do I POINT to the Theme I want to use for a Page (3 posts)

  1. jz1123
    Member
    Posted 4 years ago #

    I have done all of the following
    NOW! How Do I POINT to the Theme I want to use for a page

    If using WordPress as a CMS, you might want to present readers with a static front page, and then display your posts on another page called Blog. To accomplish that follow these instructions:

    ■Create a Page and use "My Front Page" for the Page Title. Of course, in the content for that Page, you can enter the information you want presented on your site's front page (see example below if you want to display a post).
    ■Create a Page and call it Blog. Nothing needs to be entered in the content field of this Page.
    ■In Administration > Settings > Reading set the Front page displays to A static page, and select My Front Page for Front page:, and select Blog for the Posts page:.
    If you want to further customize your front page, you can create a Template, and fit it to meet your needs:

    ■With the help of the Template Hierarchy article, determine what Template is normally used to display your Pages (e.g. page.php or index.php).
    ■Copy that template to myfront.php. If you were using the WordPress Default theme you would copy wp-content/themes/default/page.php to wp-content/themes/default/myfront.php.
    ■In Administration > Appearance > Editor, edit the myfront.php and change the beginning of the file from:
    <?php
    /**
    * @package WordPress
    * @subpackage Default_Theme
    */
    to:

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

    I am missing something here and I would appreciate any help

    Thanks
    JZ

  2. Funkphenomenon
    Member
    Posted 4 years ago #

    To make sure I understand you correctly, do you want to know how to assign a certain template to a certain page? If that's the case: in the admin, open up the page where you want the new template. In the lower right of the editing page there is a dropdown menu where you can choose a template.

  3. flamenco
    Member
    Posted 4 years ago #

    JZ,
    If I'm following you, you'd like to use a different theme for a particular page.

    To take an extreme example, maybe somebody would want to have Mystique theme on their homepage, and then Atahualpa as the theme on Posts. This is not really feasible in WP, AFAIK. Even if it can be done, you're in for a ton of work to make it happen.

    You can use a different template on a page, by simply editing the Page and choose from available Templates in the dropdown. But there won't be a template dropdown if the theme developer did not make extra templates, as per above. Even if there are, these are generally just variations on the main theme, not totally different themes.

    A small number of themes, such as Atahualpa, have a lot of theme options, but again, this is not a totally different theme.

Topic Closed

This topic has been closed to new replies.

About this Topic