I created a custom template and called it Header Home"header-home.php"
<?php
/**
* Template Name: Header Home
*/
?>
<?php
if( have_post() ) {
while( have_post() ){
the_post();
}
}
?>
Then on my front page i call it with
<?php get_header( 'home' ); ?>
Now, when i create a page, and use template "Header Home" and add my html content inside, it's not showing on the front page at all. Shouldn't the loop grab those html and add it on the header-home.php then be shown when get_header( 'home' ) is called?
When i add the html code directly in the header-home.php, it is working, but is there a way to add it within the dashboard page so it's easily "codeable"
get_header()
. Have you read the documentation for these functions. What are you trying to do?