Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

adding physical templates


  #26  
Old Jan 9, 2013, 11:32 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by juggledad
Yes, great idea. The RFE was closed, so I'll add my comment here.

Besides just saying "Are you sure?," perhaps include a more detailed explanation, like:

"Resetting this template will restore it to its default settings. Are you sure this is what you want to do?"
  #27  
Old Apr 22, 2013, 02:02 AM
stevenkwok
 
1 posts · Apr 2013
I just read the replies and knew that someone can not add a physical template to the Montezuma Theme. While I have succeeded, now share some of my experience.

Before my coding, I upgraded the version of the theme to 1.8. (I don't know if this is necessary)

As I wanted to add an "Author Biography Box" to every post, firstly I created a single.php file under my website's root diretory based on the content from the single.php on the visual template dashboard.

And remember to add these codes before the codes just copiey from the visual template:

PHP Code:
<?php get_template_part'head' ); ?>
</head>
<body <?php body_class(); ?>>

Also change the codes of <?php wp_footer(); ?> like this:

PHP Code:
<?php bfa_get_template_part'footer' ); ?>
<?php wp_footer
(); ?>
</body>
</html>

You should know that the funtions in single.php from visual template are operated in Loop.
So in the physical template you should add loop to surround the these funtions.

PHP Code:
<?php while ( have_posts() ) : the_post(); ?>

//codes here.

<?php endwhile; // end of the loop. ?>
The attachment is the appearance of the "Athor Biograpy Box" I added. Also you can visit the single.php page like this: ikea-make-more-of-your-garden
Attached Thumbnails
Click image for larger version

Name:	auhor-bio-box.png
Views:	3618
Size:	20.9 KB
ID:	2317  

Bookmarks

Tags
custom, php, shortcode, templates



Similar Threads
Thread Thread Starter Forum Replies Last Post
Templates for navigation bar JakeThePeg Page & Category Menu Bars 2 Jan 20, 2010 11:33 PM
Templates viscouse Atahualpa 3 Wordpress theme 2 Jun 12, 2009 11:59 AM
Using my own templates nickcee Atahualpa 3 Wordpress theme 1 May 16, 2009 07:56 PM
Different Page templates paulae Atahualpa 3 Wordpress theme 2 Mar 10, 2009 05:08 PM


All times are GMT -6. The time now is 11:55 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.