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 »

Is it possible to add more php to the theme


  #1  
Old Mar 13, 2013, 04:28 PM
jerryc
 
367 posts · Oct 2012
Florida
Options Is it possible to add more php to the theme

One of the things that there have been a lot of posts about on this forum is how to use more php code, beyond the limited set. Recently, Juggledad posted a patch to extend which limited php code (beyond what was originally permitted) can be used in a certain area of a template.

Moderator note: Patch 113-06 does not add any more PHP to the theme, it simply allows some of the existing limited PHP to run

Here's my idea. Can that same concept be applied to extend the permitted functions further, even beyond the limited set of allowed php?

Maybe the cleanest way to do it would be to put all the custom functions in a separate file and include them with an include statement such as:

PHP Code:
include "custom-functions.txt"
What I like about this approach is that I'm not big on editing theme or WP files. (By using plugins, I haven't had to do that yet.) However, if all I had to do was insert one line of code to include all my custom functions, and I could then eliminate one or more plugins, I'd probably do it.

Maybe as a user group we can jointly figure out how to best do something like this. Any ideas?

Last edited by juggledad; Mar 14, 2013 at 01:06 PM. Reason: typo

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing a .php theme file after the upgrade would break the theme?? justLearning Atahualpa 3 Wordpress theme 1 Oct 18, 2011 01:38 PM
Upgrade theme when non-theme files are in existing theme folder ewlong New Versions, & Updating 7 Sep 26, 2011 11:53 PM


All times are GMT -6. The time now is 02:47 AM.


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