You lost me...maybe. I'm not sure why 'lol', did I answer the wrong question? If you want to make a custom header you should just be able to edit the header template.
I was about to answer the above question about using {vb:raw mycustomheader} by refering you to the article on templates, but I see you found that already. BirdOfPrey5 asked what hook you used for your plugin - that's a good question because the header is rendered kind of early on, so if you don't choose a hook before that then you won't see anything. ETA: hook parse_templates is just before where the header template is rendered, so that might be a good one.
--------------- Added [DATE]1311178575[/DATE] at [TIME]1311178575[/TIME] ---------------
OK, I saw what you posted in the other thread, and I guess you're not using plugins.
Instead, create a plugin in the adminCP by going to Plugins & Products -> Add New Plugin. Select hook location parse_templates from the dropdown and paste your code in the box. Put a title in so you'll remember what this does, and select the "Yes" radio button to enable the plugin (you should be able to leave the other fields as they are). ETA...oh yeah, and then press "Save" or "Save and Reload".
BTW, what I posted about it being too late to affect the header after global.php was wrong (I was thinking vb3), but you still want to use a plugin so that you don't have to change the php for every page.
|