The theme-options tag has no wiki summary.
1
vote
1answer
329 views
Using if/else statements with output from theme options
In another question I was talking about using theme options to modify CSS. This is a separate but related question.
When a user sets a link colour in my theme, here's how I'm including their choice:
...
0
votes
1answer
582 views
send information from the thickbox image uploader second tab
in this question i've found how to create a custom tab at the image uploader.
this is the code:
add_filter('media_upload_tabs', 'my_media_upload_tabs_filter');
function ...
0
votes
1answer
1k views
Using theme options to change link colours
I'm developing a WordPress theme with some theme options (using the ThemeShaper sample theme options page), and one of the options I want is to allow users to set their own link colours.
At the ...
3
votes
3answers
2k views
Can You Export Theme Settings From WordPress Multisite?
I do local WP development on a WordPress Multisite instance. What is the best way to move theme settings from there to the live instance? By theme settings I am talking about widgets and theme ...
2
votes
1answer
607 views
How to make alert for new version on theme options?
Let say my theme host on my server. User download my theme and use it. Now I want notify @ alert for new version of my theme.
Example to show "New version has been release. Please download at ..."
...
0
votes
2answers
541 views
Setting up a members area
I am trying to set-up a members area on a site, I have already come up with one solution but was wondering if anyone one knows of an easier or better way to go about it. The problem is the user ...
1
vote
1answer
407 views
How to override .htaccess with new rules without ftp or edit it manual
I want script will add new rules to current .htaccess and user no need to ftp or edit it manually.
Example, I use timthumb for resize image on my theme and want rewrite the URL and current .htaccess ...
1
vote
1answer
517 views
Theme option editing capability problems
I've setup some theme options using this helpful guide as a template. I want to give my editors the option to update these theme options, so I granted the edit_theme_options capability as mentioned ...
0
votes
1answer
212 views
How to add or delete default value theme options while activate and deactivate theme
I want to add & reset default value for my theme options while activate and deactivate a theme
More clearly something like this
if(theme active)
add_option();
// add new option to the theme ...
1
vote
1answer
159 views
How to get a value for admin css color either gray or blue
I want implement theme option which will have two css files.
Example, if current admin set their profile to blue color I want load blue css for the theme options.
if (current-value-css-admin)
load ...
3
votes
1answer
12k views
How to use media upload on theme option page?
I want implement upload logo to my theme option page. Currently I follow this code
What I have done for now load a related jquery for the media upload
function load_only() {
add_thickbox();
...
1
vote
3answers
444 views
How to load default scripts included with WordPress correctly?
I want to know the correct way to load existing scripts in wp-includes/js/jquery/
Example I want to load jQuery UI Tabs
What I have done for now
function sample_exists_code() {
echo '<script ...
2
votes
1answer
178 views
Can I use theme options to change two things at once?
Possible noob question -- please be nice.
I'm doing up a theme options page using the sample from Themeshaper, and one of the options I want to have is to set the width of the sidebar.
To do this ...
2
votes
2answers
2k views
Uploading files in admin panel?
I want to allow my users to upload files in admin panel, but I'm not sure where should I upload these files and how the script should look like?
<p>Please provide link to a file or click ...
3
votes
1answer
863 views
Best practices for a Style/CSS based theme options page?
I would like to create a theme options page based only on changing the site wide CSS styling. For instance body/container background colors, font-sizes, font colors, etc.
I have accomplished this by ...
2
votes
3answers
2k views
How to prevent escaping when saving HTML code in an option value?
I have a Theme Options page where the user can add certain options like Facebook links, etc. One of the options is for some ad code and when saving it as an option it gets escaped over and over again.
...