• I created a custom page template and selected it for my “blog” page, since I’m displaying a static front page. My blog page is still displaying the default page.php or index.php template.

    In fact, I copy and pasted my page.php and changed key things like background/logos to test in my custom template with no success.

    Any ideas why it is doing this? I deactivated my theme and reactivated it to see if that would do anything, but no luck there either.

Viewing 4 replies - 1 through 4 (of 4 total)
  • OK, in this kind of case, the thing I do is to place the name of the file inot the PHP file.

    For exemple :
    In INDEX.PHP, I paste :
    <!-- PAGE: INDEX.PHP - APPEAR FADE -->
    In PAGE.PHP, I paste :
    <!-- PAGE: PAGE.PHP - APPEAR FADE -->
    In 404.PHP, I paste :
    <!-- PAGE: 404.PHP - APPEAR FADE -->

    Like that, when I want to know on which page I’m, I’ve just to go to ‘source code’ of the page displayed, and I can see the page name where I’m ??

    This is the 1st thing to do, this will help you in the future.

    When you’ve check that you’re really on PAGE.PHP instead of your Template PHP file, you can advise, check what’s wrong etc…

    My blog page is still displaying the default page.php or index.php template.

    When using a static front page, your posts (blog) page will automatically use the index.php template file.

    Thread Starter MARKPIMENTEL

    (@markpimentel)

    Thanks Riversatile and emsi!

    Are there work arounds for this, so my posts page can use a custom template file?

    Reason being, I have an introduction page – and separate pages for things like my portfolio.

    https://www.mark-pimentel.com

    I’d just like to style my posts page a little different then the rest.

    Again, you guys are awesome here! It’s the reason wordpress is what it is.

    Are there work arounds for this, so my posts page can use a custom template file?

    Yes – edit your theme’s index.php template file.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Selected Custom Page Template -> Still Displays Default Template’ is closed to new replies.