Forums

Page not picking up theme --do U C Y? (6 posts)

  1. kenwinstoncaine
    Member
    Posted 3 years ago #

    Hi:

    I am trying to get the theme I have here: http://www.wellnessu.org/Mind-Body-Spirit-Bulletin/

    to show up on Pages (with a capital P). Here is a Page where I tried:
    http://www.wellnessu.org/Mind-Body-Spirit-Bulletin/sinus/

    The Page comes up blank. Yet.... I instructed it (in the "template" box on the Page creation page) to pull up the theme tplate4pages, which is identical to the template used for http://www.wellnessu.org/Mind-Body-Spirit-Bulletin/ except that it has these five lines of code at the top, per the codex:
    <?php
    /*
    Template Name: tplate4pages
    */
    ?>

    Do you see what I am doing/not doing that needs to be fixed?

    Thanks,
    ken

    P.S. I'm in 1.5.2.

  2. moshu
    Member
    Posted 3 years ago #

    It seems this is the only Page on that site - in that case why isn't the Page Template just a simple page.php, without those lines at the top?

    EDIT. Are you using any kind of plugins that would interfere with how the Pages work?
    http://wordpress.org/support/topic/46002?replies=26#post-303841

  3. kenwinstoncaine
    Member
    Posted 3 years ago #

    Your questions:

    1. I am going to have a lot of Pages on the site as I build this (soon as I figure this out!). Created tplate4pages.php and added those lines because the Codex said to include those lines: http://codex.wordpress.org/Pages#Page_Templates

    Not sure how to get this to pull just the page.php file.

    I do already have a page.php file in my theme. It has the same code as I have put on the tplate4pages.php page, minus those first five lines.

    In an earlier attempt to create a Page, I had tried just using "default template" for the Page template and it also came up a blank Page. I had assumed that "default template" was pulling the "page.php" file, or was supposed to. (Yes?) If not, how do I get it to do that? The only choices I see in the dropdown box are:

    Default Template
    Archives
    Links
    tplate4pages

    Should Default Template produce the same template on my Page as on
    http://www.wellnessu.org/Mind-Body-Spirit-Bulletin/ ? That's what I'm wanting to do.

    2. I do have a lot of plug-ins installed. One in particular possibly might be affecting this. I'll uninstall it and see what happens. Maybe I'll wait for clarification on the answers to question 1 above before doing that. Just in case I'm missing something there.

    Thanks,
    ken

  4. moshu
    Member
    Posted 3 years ago #

    Wrong order :)
    If you have any plugin that affects the Pages - deactivate them. See if the Pages work as they should. After that you can try to play with the plugins.

    And yes: the "deafult Page template" should be the page.php file in your theme. If that doesn't work with a vanilla installation, you should try to re-upload the theme or that file.

  5. kenwinstoncaine
    Member
    Posted 3 years ago #

    I had something wrong in the page.php code. Not sure what, but by reloading the page file, I now have the template showing up on the page.

    Thanks for the help.

    Am continuing to play now and expect to, within hours, actually have this site working and begin truly building out.

    Best,
    kwc

  6. kenwinstoncaine
    Member
    Posted 3 years ago #

    I should close this thread.

    Not sure how the "bad code" crept into my page.php file nor what it was intended to accomplish. It was this:

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
    </div>

    <?php endif; ?>

    </div>

    </div>

    Any idea what that is intended to do?

    Thanks,
    kwc

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.