Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Default Template for All Pages


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 3, 2012, 09:55 AM
rickheck
 
139 posts · Oct 2009
Default Template for All Pages

I know that you can create a template, and select it as you are creating/editing posts. The template replaces the use of the index.php, so is not affected by a theme update, right?

But what about a custom template that is automatically enabled for all posts without having to select it each time? And the custom template should 'survive' a theme update.

I know that I can modify the index.php, but that mod will be overwritten on the next theme update.

The intent is to have a banner ad (or any custom PHP function) above the center column, but not above each post (so kicker's can't be used).

A useful mod to the theme is a short piece of code that would look for a specific include file, and include it if found. That code would be in the "before the loop" area like what used to be available before WP didn't allow PHP code to be added. The advantage would be that the custom PHP function file would survive a theme update.

So first option is how to specify a default template without modifying the index.php. And the second is a request for a PHP include_once above the loop that would insert a custom PHP file (if it was found).

...Rick...
  #2  
Old Mar 4, 2012, 05:10 AM
juggledad's Avatar
juggledad
 
22,245 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
index.php IS the default template for all pages
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get text-align justify to be the default for posts and pages GlobalNeat Center area post/pages 1 Feb 23, 2010 06:39 AM
[SOLVED] Font on Posts and Pages is WHITE by default? michael1 Post-Kicker, -Byline & -Footer 2 Dec 4, 2009 11:27 AM
My site keeps reverting to the "Default" template from Atahualpa! Leonardo T Dragon Atahualpa 3 Wordpress theme 3 May 8, 2009 01:40 PM


All times are GMT -6. The time now is 08:19 PM.


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