Hi, I am trying to follow your instructions for making my custom header but something is not working. Does anyone have a sample of what the header.html file might look like? The instructions say to copy css info from the amember header.html template but I don't see any css on that file only this: {php} echo amember_get_header($this->_tpl_vars); {/php} Thank you!!!
I guess you use PRO 3.2.2 beta version? For that version you should edit /amember/templates/layout.html file, it have both header and footer in one place.
Thank you, I found the layout file. I see this in the head section: {php}echo amember_get_header_code();{/php} What does that mean?
I don't understand how this works. We now have layout.html and header/footer.html. header.html and footer.html are still called from member.html So layout.html is used for plugins or ... ? They both call echo amember_get_header, layout passes no variables, header passes $this->_tpl_vars What exactly is passed? If I edit header.html and just add some text on top I mess up the layout because the text is added before the DOCTYPE tag... I'm lost here
I finally found out how it works! Ok, so for upgrading I moved the stuff from my previous (3.1.9) header and footer templates to layout.html. As of version 3.2.2 header.html and footer.html calls amember_get_header / amember_get_footer that in turn call amember_get_header_footer, that calls layout.html. In layout.html amember_get_header_code is called and that calls amember_get_header_code_standard what inserts the two (three if site.css is available) css links. These functions (as well as the google analytics code) can be found in plugins.inc.php Can someone from amember staff confirm if this is correct? Thanks, Erwin