Hi, Im new to Sage but Ive got it set up fine so far (Im familiar with most of the tools, NPM,Bower, etc) but I am having a problem setting the basic layout. Using bootstrap 4 and have got the header/nav with navwalker, and footer set up, all using the default unchanged base.php wrapper file and the supplied header/footer templates with just the bootstrap markup in those. However I want to use a custom header (created and called custom-header) on the front page which is different to the header for all other pages. Using an if statement as below
do_action('get_header');
if (is_front_page()) {
get_template_part('templates', 'custom-header');
}else {
get_template_part('templates/header');
shows an end of file error for php on line 43 of base .php(which is an empty line) although left as default there is no error and it pulls in the default header template.
Additionally I am getting whitespace below the footer on front page but not on any other page, I presume this because either I dont have sidebar enabled on that page or simply that I havent added the custom css yet ?
Thanks