Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hooking into get_header to replace header.php in certain files?


Anonymous User 96400
Inactive

@anonymized-96400

No, what you need to do is copy header.php and footer.php into your child theme and adjust them. Then, if you need different headers for each section do it with if statements (also in header.php and footer.php). You can find all the conditional tags in the BP codex.

You could also code a little switcher that works with includes. That way you’d have the various headers in different files. It’d be easier to maintain.

Skip to toolbar