• I suppose there’s a slew of reasons one wouldn’t be able to select a Page template on the Edit Page page, but one place you can check is in your CSS file for the line:

    Template: enfold

    Where enfold is the template the CSS file is looking for. You will find that line commented out at the top of the CSS file if it exists, and if so, just delete the line.

    The line could be;

    Template: my template
    Template: rigamarole templete
    Template: spagetti template

    Whatever it is, if you see a line similar to the above, remove it, save, and try loading your Edit Page page again to see if your templates drop down works.

    If the above code in the CSS was the issue, it will work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The Template: line in your theme’s style.css informs WordPress that the current theme is a child theme, and if you remove that line, it breaks the link between the parent and the child theme and you may have some unintended effects.

    Page templates are noted by the Template Name: line in the header of a PHP file and are not related to whether the current theme is a child theme or not. If you are having problems setting a page template, the first place to check is to see if the Template Name: line appears in the header.

    Thread Starter Dave Lauretti

    (@345ad)

    Correct. The case I’m talking about is where one has either stopped using the child theme, deleted it, or has pasted in CSS from another site of theirs. That’s what occurred in my case. I could not find a fix anywhere related to the Custom Template field not showing, and I was using a theme CSS file that did call a child theme, I wasn’t using. When I removed it, the Theme Template drop down displayed.

    Thanks for that extra info Stephen…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘If You Can't Select WordPress Page Template’ is closed to new replies.