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
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
Old Mar 3, 2012, 10: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, 06:10 AM
juggledad's Avatar
23,026 posts · Mar 2009
OSX 10.10.1 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 07:39 AM
[SOLVED] Font on Posts and Pages is WHITE by default? michael1 Post-Kicker, -Byline & -Footer 2 Dec 4, 2009 12:27 PM
My site keeps reverting to the "Default" template from Atahualpa! Leonardo T Dragon Atahualpa 3 Wordpress theme 3 May 8, 2009 02:40 PM

All times are GMT -6. The time now is 05:50 AM.

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