Page header template

How do you guys normally handle a page heading (h1 tag with dynamic post title, and some margins, etc) to be included in every page except the front page?

For now i have created a template and made it section type, and then manually drop it in to each page. Is there a better way?

to clarify:
Page heading = title of the page
Header = global header with logo and navigation

Create a template of type Heading.
In conditions set to entire website then exclude home page.

There is a type “Header” but not “heading”.

If I already have a global header for the logo/nav, that doesn’t work and replaces it (not sure how it determines which to use though for two conflicting conditions).

I guess you’d then make the header (nav) a section, and load it into two separate header type templates? One would have the page heading below it, and the other would not.

The advice from @alanj correct. You can create two templates, one template for the main page, and the second for all others.

If the design of the pages is not very different, and you just need to remove the h1 title from home page, then for this there are Comparison Conditions that can be added to the Title widget

65465

Ok thanks, the individual element conditionals should work great.

Or depending on your site setup, you could add the heading/styling to a Single Post Template ( or multiples if needed ). Would at least save typing.

1 Like

@clickfusion63 I’m not sure if this solution works? Ideally I don’t think the page header should be part of the main header.

And then if you’re using a sticky header, this doesn’t work to as the page header will be sticky too.

Found an easy solution that I couldn’t find anywhere on the forums…

Figure this out - leaving up incase this is useful to anyone else as this si simple once you know and I couldn’t find this anywhere on the Bricks forums, hope this helps someone else.

  1. Create a new Template with Type = Section
  2. Build your page header in here
  3. Go to Settings > Template Settings > Conditions
  4. Set an exclude condition for the front page with the hook “bricks_after_header”
  5. Set an entire website condition with the same hook
1 Like

Yes that sounds best