• I’m working with a custom theme on a fresh install of wordpress, and have a number of page templates.
    On pages, the dropdown menu to select the page template has disappeared.
    I’ve re-activated the default theme, de-activated it, and re-activated the custom theme, as has been suggested as a fix to this bug, but with no luck. The template menu still isn’t there. In the screen options at the top of the page, there isn’t an option to turn this on and off either. Completely at a loss as to what’s causing this.

    Any help much appreciated.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Are you sure that the templates have been named properly?

    The comment at the top is crucial and needs to have this exactly:

    /* Template Name: */

    Thread Starter iamduncan

    (@iamduncan)

    Hi Christine,

    Yes, absolutely sure. The theme was working perfectly well on one domain, and when switched to another, the template dropdown simply disappeared.

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

    Are the page templates available within the Twenty Eleven theme?

    Thread Starter iamduncan

    (@iamduncan)

    Do you mean did I try transferring them to the Twenty Eleven theme?

    If yes, then yes, I tried this, and the option still didn’t appear.

    I’ve also just deleted the WordPress install entirely, re-installed entirely, and the option STILL doesn’t appear.

    No – do Twenty Eleven’s own custom page template show up in the dropdown?

    Thread Starter iamduncan

    (@iamduncan)

    Ah, I understand, apologies.

    No, they aren’t. The Page Attributes box, when Twenty Eleven is installed, only shows the Page Parent option and Page Order, nothing else.

    Twenty Eleven has 2 custom templates that should be displayed in the dropdown, so that rules your theme itself (and possibly your custom templates) out of the equation. Do you have any plugins installed (active or not)?

    Thread Starter iamduncan

    (@iamduncan)

    About 10, but again, I’ve already de-activated, then deleted them all, and still nothing happens in either theme. Is it possible it’s something to do with the database or server?

    Is there nothing I can add to functions.php to force the dropdown to show?
    I’m completely at a loss, genuinely.

    Try resetting the plugins folder by FTP or phpMyAdmin.

    Thread Starter iamduncan

    (@iamduncan)

    I’m afraid that didn’t work either.

    So it seems to be a server-related problem. Try adding define('CONCATENATE_SCRIPTS', false ); to the bottom of your wp-config.php file (just before the require_once line).

    Thread Starter iamduncan

    (@iamduncan)

    I’m very, very sad to say that didn’t work. πŸ™

    Can you see if there is anything helpful in your server’s error logs?

    Thread Starter iamduncan

    (@iamduncan)

    Just a 303 error when I deleted the plugins and the files couldn’t be found.

    Do you have access to another server?

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Template dropdown not showing on pages’ is closed to new replies.