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 »

Kind of random PHP question


  #1  
Old May 19, 2011, 10:51 PM
aQuickStudy's Avatar
aQuickStudy
 
43 posts · Mar 2010
I'm thinking about ways to modify Atahualpa to use with clients who want to be able to customize their site but in the lowest-effort way possible. I've already played with removing a bunch of the setting tabs/ options so as to only allow them to modify the things I know they'll want to mess with. Now I'm wondering what it would take to have a couple single entries for the site color scheme that would auto-populate the individual color settings.

So for example, if they are using three colors (let's say red, blue, green), they would need to select a primary color, a secondary color and an accent color. The primary color would be all headers, the secondary would be all links plus the sidebar border and the accent would be the link hover color and the sidebar backgrounds. (These are random, made up examples - that would probably be ugly). What would it take, generally speaking (but more specifically than "PHP") to make that happen on the admin side?

This is still pretty theoretical, I'm just curious. My PHP isn't amazing, but I can usually pick out solutions to specific problems in it.

Related: Might someone be willing to give me a hint as to how I could move many of the color settings to one tab and have them all use the color picker/ show the color like the link color fields do? I'm not asking you to do it for me, just give me a nudge in the right direction

Thanks & looking forward to learning/ theorizing/ discussing
  #2  
Old May 20, 2011, 05:28 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Remember that every element on the page can be colored and only some are setup with options. That said, there are well over 100 locations in the theme options that you can change the color.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 20, 2011, 05:32 AM
aQuickStudy's Avatar
aQuickStudy
 
43 posts · Mar 2010
Thanks for responding to my harebrained ideas

The over 100 places thing is what I'm trying to figure out how to CHANGE. I want there to only be the option to set a couple of colors, which then determine the color for multiple elements. Making it LESS customizable, since most of the people I work with aren't looking for that degree of customization but do want to be able to change some colors on their own. I'm thinking the answer is that I need to learn more about the admin interface in general such that I can just make the color options fields I want to keep "talk" to the right elements.

Also, I don't know if y'all are interested, but I totally rearranged the tabs on the Theme Options page and I think it's more intuitive/ clear the way I've got it. I'm happy to share
  #4  
Old May 20, 2011, 05:51 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) you will be actually forking the theme so you should rename it leaving in the credit to the existing theme (go read the GPL license)
2) you will have to recode any changes each time the theme upgrades

css.php is what creates the style that gets included, but it grabs the various includes from the options array, so you will have to go thru all the css.php code to see where each option comes from and then locate that array entry in the rest of the code and then code the changes to pick the color from what ever you add as a color picker.

Plus you will have to remove the code that allows the user to change the color now.

In my mind, this is not a simple project...but have fun.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old May 20, 2011, 05:54 AM
aQuickStudy's Avatar
aQuickStudy
 
43 posts · Mar 2010
Oh yes, I am not expecting it to be simple at all. That's why it's mostly theoretical at this point. I think it would just be really useful to have a theme that has Atahualpa's flexibility but also has a less intimidating entry level for customization for people who just don't need all the options. And, I am willing, as I have time, to play around with it. The thing about updates is what I am least enthused about with this.

I mean, I don't find the current theme options intimidating, but the people I work with definitely would.

Thanks for the links and the direction about which files to start with as I play, super helpful!

Last edited by aQuickStudy; May 20, 2011 at 05:55 AM. Reason: Clarity
  #6  
Old May 20, 2011, 11:44 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Quote:
Originally Posted by aQuickStudy
Also, I don't know if y'all are interested, but I totally rearranged the tabs on the Theme Options page and I think it's more intuitive/ clear the way I've got it. I'm happy to share
I would be interested to see how you have rearranged the tabs.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old May 20, 2011, 12:57 PM
aQuickStudy's Avatar
aQuickStudy
 
43 posts · Mar 2010
Here's a screen capture of the tabs (it's a local test installation):


Note that the very first tab is the "START" tab. Also, I took away the SEO, RSS and Favicon tabs entirely because in the use case I'm exploring I would have people use plugins for those functions.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] For kind attention: Flynn aam ThemeFrame Presales 3 Apr 18, 2011 07:26 AM
Use random image code to display random flash banner? blueprairie Header configuration & styling 0 Mar 18, 2010 02:30 PM
How to turn off Atahualpa Post Options, interferes (kind of) with Post Template maccool Post-Kicker, -Byline & -Footer 1 Aug 13, 2009 10:00 AM
"You are here:" kind of navigation help zagato Header configuration & styling 2 Jul 27, 2009 04:24 AM


All times are GMT -6. The time now is 11:45 AM.


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