Create custom header for other pages

Hi, are there any docs on creating a custom header in Sage 9.3. I am using the default one for the home page but want to create a different one for all other pages and use a cond statement to render, my default is just the header.blade and I have created another one called header-page.blade with a slightly different layout for all pages other than the home page. However, it is still rendering the same default header template and not the new one despite seemingly having the correct code in app.blade.

@php(do_action(‘get_header’))
{{-- @if(is_front_page())
@include(‘partials.header’)
@else
@include(‘partials.header-page’)
@endif --}}
@include(‘partials.header’)

Are there any other settings I need to make to get it working ? Thanks

I think you’ve commented out your entire conditional block, which would certainly prevent it from being processed.

2 Likes

Yip, that was it, oops! Many Thanks