Using Custom template and sub-template
I have a copy of the PAGE template that is my main custom page template. I created two sub templates to house my header and footer. In the page I select my virtual template. Then in the custom template I add these statements:
<?php bfa_get_template_part('newheader'); ?> <?php bfa_get_template_part('newfooter'); ?> They do not display either header or footer. The main custom template however is working, I know that it is being displayed. I have tried all sort of variations and checking the spelling of the name. I look at the code for this function and off hand do not see anything wrong. Either I've got the function call wrong or there is something else that need to be set to get sub-templates to display |
Try this concept:
PHP Code:
Quote:
PHP Code:
Quote:
PHP Code:
|
Quote:
|
There is a problem with subtemplates. if you notice they don't get a '.php' extension' This part of the code is being rewritten be the developer for the next release so don't put too much time into it for now.
[Update - 1/30/31] the fact that the extension is not there does't matter, the template will still be used. the issue is just the on screen display |
It's great to have your guidance on these things juggledad.
Thanks. Any eta on the new release? |
Juggledad,
A while back, I posted:. Quote:
Quote:
Recently, you posted: Quote:
HTML Code:
<?php get_header('header-custom'); ?> HTML Code:
<?php get_header('custom'); ?> How did you get it to work? What am I missing? Thanks, Jerry P.S. Making a new subtemplate by selecting the option to copy an existing on produced an empty subtemplate for me. Your suggestion of copying and pasting did work to make the file, it just didn't display anything. |
export your settings and attach them to a reply
|
I'm glad that you can read these tea leaves.
P.S. I'm almost out of attachment space. How do I get more, or should I delete things? |
Quote:
|
I don't see a custom-header' in the virtual subtemplates or a reference to it in any of your main virtual templates.
|
Quote:
|
Then why did you post on this thread and send your settings?
|
Quote:
Quote:
|
I was incorrect in assuming since you said you tried it again and it didn't work and were asking for help you still had the virtual templates in your site. I asked to see the export because it would contain your templates and I could look to see if there were any errors.
Since you deleted them, you don't have a problem that I can look at and there was no need to spend any time on this. I will close this thread. |
All times are GMT -6. The time now is 05:03 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.