0
votes

I am using a child theme. In my child theme folder I have the following files:

child theme directory structure

In my custom page template "page-lp3.php" I'm using get_header('blank') to call a custom header template. But no matter what I do, it reverts to the child-theme's header.php file not header-blank.php as intended.

This is the code in "page-lp3.php":

<?php

/*
Template Name: LP3
*/

get_header('blank');

?>

The custom template is activated for that page in WordPress. And the changes I make to the custom template are working as expected. But the custom header is not cooperating. What am I doing wrong?

1
Just use like this "get_header();" and tryFull Stop
Maybe it's absurd and you already checked, but better check it again then regret it. Have you checked for file permission? are you sure PHP can actually READ it? If that work you should debug the get_header function i guessDiego

1 Answers

0
votes

Check the error logs files of your project and removes errors first.