Thread tagged as: Question, Problem, Blog

Using Global.Header on Blog pages

How do I use the global.header on my index.php, archive.php, etc blog pages?

Brittany Lewis

Brittany Lewis 0 points

  • 4 years ago

It works exactly the same way you'd do it on other pages:

<?php perch_layout('global.header'); ?>

NB You might need to change the path to the runtime file if you're working in a sub folder like /blog/.

I did both of those things. But it's like the css and the logo image is broken.

You might need to add a forward slash to the external file paths in the header to set the relative path from the root, rather than from the current page.


<link rel="stylesheet" href="/stylesheet.css">

That worked! Thank you!