aristath
Supreme Deity
WPMU DEV Staff
Lifetime member
Support Hamster Likes (0)
On wordpress 3.4 there's a really cool feature, the theme customizer.
Some of us though don't give our clients access to the wordpress administration and prefer to do everything on the front-end.
Unfortunately, the theme customizer is located in wp-admin/customizer.php.
How can I allow my customers to access this coolness??
I've tried creating a page called customize, then copy and edit the customizer.php file in my theme as page-customize.php but I just didn't make it. Any suggestions?
Responses (22)
Inactive (joined February 2012) Likes (0)
Hey aristath,
3.4 is just here, still new. Let me pass this one to a developer and see what we can do for you.
Hold on :)
Support Hamster (joined March 2012) Likes (0)
has anyone by any change taken a look at this?
Developer (joined January 2012) Likes (0)
@aristath, given that this functionality is fresh out of the gate with WordPress 3.4 I think most of us are currently trying to figure out how to add this customization API to existing themes.
To entertain the idea of allowing front-end users to somehow manage these customization would be the logical next step. One things I'm wondering about is security. I'm assuming you have some form of authentication already in place for your users. Assuming you do and can tell who is admin etc.
So looking at the customize from within wp-admin it open in a page without the normal wp-admin wrapper. So you see just the left customize options and the right side preview panel.
What about just using a simple iframe in a page template? Something like
https://gist.github.com/2969064
I think this would eventually be a cool feature or plugin to offer here on WPMU DEV. But at the moment I can't see getting this done in an afternoon coding session.
Support Kangaroo (joined March 2011) Likes (0)
Greetings @PaulM and aristath,
Just checking in here to see if Paul has come up with any more ideas regarding this possibility or should I delegate it to the feature requests area?
Please advise.
Cheers, Joe
Support Hamster (joined March 2012) Likes (0)
@aecnu @PaulM PLEASE DO!!!!
I've been fighting with this for the past 7 hours and I can't figure it out!
I've copied the file to my theme, renamed it to page-customize.php, created the appropriate page with a slug "customize", changed line 12 from
require_once( './admin.php' );to
require_once(ABSPATH . 'wp-admin/admin.php');and I'm stuck in a vicious circle!!!
when visiting this page (mydomain.com/customize), I am redirected to the login page.
When I enter my credentials and try to login, I am re-redirected to the login page (even though I am actually logged-in).
Support Kangaroo (joined March 2011) Likes (0)
Greetings aristath,
Howdy Ho there my neighbor to the south and mutual "inter-dev-aholic" ... lol
I see you were up late last night pounding at the keyboard.
I am sorry to report that we may not see Paul back in here until the beginning of next week, of course being that it is the weekend but I am sure he will make it back in here as soon as he can.
Cheers, Joe
Support Hamster (joined March 2012) Likes (0)
I was trying to build an all-frontend project. After a lot of frustration and inappropriate language... I decided to allow backend access and try to build a beautiful backend.
I am marking this as resolved simply because it's no longer needed.
Thank you all for your assistance though, It 's greatly appreciated.
Member (joined May 2011) Likes (0)
@aristath --- why did you decide against building the user admin interface in the frontend? What problems did you encounter?
BTW - way to go on Bootstrap Admin - impressive!
Member (joined November 2011) Likes (0)
I've been toying with this for a while now. Actually, it's pretty easy, and I've made a plugin for it, however, you have to edit the user permission.
My plugin and it's goals are a little different, I wanted non-users (guests, not logged in at all) able to play with my theme's options, without the ability to actually make changes.
You're wanting the clients to be able to make changes on the front end?
The customizer shows the front end, isn't that enough?
Support Hamster (joined March 2012) Likes (0)
could I have a copy of your plugin?
Member (joined November 2011) Likes (0)
Only if you help me finish it :)
It's about 3/4 of the way there.
Shoot me an email and we'll carry on the discussion there.
Support Hamster (joined March 2012) Likes (0)
sure!
Do you have it on github so that I can fork it and contribute?
Member (joined November 2011) Likes (0)
No it's not on github YET but that's where it's going to end up
Support Hamster (joined March 2012) Likes (0)
ok, you can send me a copy @ aristath at gmail dot com so that I can start working on it. :)
Member (joined November 2011) Likes (0)
email sent
Support Hamster (joined March 2012) Likes (0)
got it. :)
Support Kangaroo (joined March 2011) Likes (0)
Berry Berry interesting coding conspiracies possibly going on here! ... lol
Just checking in on this ticket as I seen it suddenly came on my screen again.
Hope you guys meet your goal there.
Sincerely, Joe
Member (joined November 2012) Likes (0)
This is something I have been playing with as well and found a gem!
Check out the customizer plugin.
http://wordpress.org/extend/plugins/customizer/
I would appreciate any feedback regarding what you implement with custom/premium themes.
Support Kangaroo (joined March 2011) Likes (0)
Greetings Fla0,
Thank you for your input which is certainly appreciated and for posting your find.
Though I have not had time to play with it, it is certainly intriguing and I do want to check it out.
Thanks again for your post and for being a WPMU DEV Community Member!
Cheers, Joe
Member (joined March 2013) Likes (0)
Have you guys managed to come to a conclusion in terms of your collaborative coding? I have a solution for all of this, I just don't have the skill in making it happen. But is this possible - A workflow of some sort, where a user fills in a form on the front-end and based on their input, generates output (changes back-end settings whatever they may be). Is this possible?
Note - users will be logged in when doing this. They just won't be able to access /wp-admin or see the top bar ribbon.
Support Hamster (joined March 2012) Likes (0)
Hello there @iammathews,
@Jason created this on https://github.com/GreenThemes/GT-Theme-Customizer-Preview
You can download it and test it out from there. :)
Cheers,
Ari.
Member (joined November 2011) Likes (0)
Yeah my plugin requires just a tiny bit of configuration but its mostly self configuring.
You just need to add the shortcode for where you want the link to be and you might wanna only test it in ignconito mode.
See it on action on http://greenthe.me big button ib the center top.
WordPress Questions?
We've got answers!
Find out more »