Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter emilep

    (@emilep)

    The theme I’m using on the fresh install is a rather simple one I made myself – it only has the “default” template and an empty template with a simple get_header(), get_footer() and a big H1 in the middle which allows me to see whether or not the right template is being displayed or not in the page preview.

    This is the testing template, called template-default.php, :

    <?php
    /*
    Template Name: Par défaut (template-default)
    */
    
    get_header(); 
    ?>
    
    <h1 style="color: black;">This is the default layout!</h1>
    
    <?php
    get_footer(); 
    ?>

    The functions.php is empty except for the CSS and JS includes (and the issue remains when emptying the functions.php).

    Just to specify, the templates work correctly when saving – it’s just the Preview feature that doesn’t work correctly (it always uses the page’s current template instead of the one that’s currently selected in the Edit page)

    • This reply was modified 7 years, 11 months ago by emilep.
    Thread Starter emilep

    (@emilep)

    Yes, I’ve tried that: the clean WordPress installation I’ve been testing on has no plugins, so it cannot be a plugin conflict.

    • This reply was modified 7 years, 11 months ago by emilep.
    Thread Starter emilep

    (@emilep)

    I’ve tried with two completely different themes, and the two WordPress installations I’ve been testing on are on two different servers – one of which is a very simple LAMP setup with no other sites on it and no special caching modules or anything like that. I’ve also disabled browser caching during my tests. Still, the same issue arises. :/

Viewing 3 replies - 1 through 3 (of 3 total)