Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

Default Template for All Pages

Old Mar 3, 2012, 09:55 AM
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).

Old Mar 4, 2012, 05:10 AM
juggledad's Avatar
23,707 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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


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 09:33 AM.

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