Display page title in custom page template
I created several custom page templates,
Not sure where I copied the base code from (possibly juggledads custom template) everything works fine but the page titles don't automatically show up, which is good in some cases but not in most. What I want is for the typical Atahualpa functionality to exist, where the title displays by default unless the 'do not display' box is checked. Here is the code I'm using for the template. HTML Code:
<?php |
You don't have the code to display the titles in you custom template.
|
Understood,
I was hoping someone would help me with that. |
take a look at the index.php and you will see the code needed.
May I ask why you are using templates? |
I have submenus in the center columns of specific page groups.
I looked at index.php, sadly I don't have the experience yet to read and understand it thourughly enough to know what to grab, I'll just go back and eff around till I figure it out on my own, |
you need to change
HTML Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy HTML Code:
<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?> This would mean on a theme upgrade, you would only have to worry about adding the new widget area back into index.php. You would just change the line HTML Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?> HTML Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?> |
is the theme updating benefit the only reason for ditching the custom templates?
|
Isn't that enough. If the index.php changes, you have to go back and change multiple files vers just changing the index.php. But it is your choice.
|
All times are GMT -6. The time now is 12:35 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.