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 » Atahualpa 3 Wordpress theme » Center area post/pages »

Default Template for All Pages


  #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
 
23,765 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

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 06:52 AM.


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