Theme Options allow a Theme author to give users the chance to change certain Theme features such as color and layout. The Theme Options Screen is only available if the active theme supports a Theme Options ability. In addition, this screen will likely be different for each Theme that enables and ...

learn more… | top users | synonyms

2
votes
2answers
1k views

WordPress Nonce and check admin referer help needed

Just before I start please note that I am new at any type of WordPress/PHP security. Few days ago friend of mine asked me to create Theme Options for his Theme, all set and working fine, however he ...
0
votes
1answer
182 views

Preset Widgets ONLY after site is initially created

I want to preset some widgets using functions included in my theme ONLY after a site is initially created (my theme is the default for all new sites in my instance of WordPress). I DO NOT want my ...
2
votes
1answer
2k views

How to change Wordpress theme to one column?

Currently I'm using The Morning After Theme (http://theme.wordpress.com/themes/themorningafter/) It lists one-column as a feature, so how do I change it to one-column? The default is three columns.
1
vote
1answer
76 views

How can I make some themes usable only by admins?

I want to restrict certain themes so they can only be usable by the an admin. If I network a theme then everyone has access to it. How can I do this?
0
votes
3answers
899 views

PHP stylesheet cannot use standard WP functions

I am including a particular PHP file as a style sheet using <link href="<? echo THEME_CSS;?>/styles.php" media="screen" rel="stylesheet" type="text/css"> Recently I reached the point ...
0
votes
2answers
803 views

How can I change the theme of different posts using a plugin?

I'd like some posts to look different from others. Wordpress let's me easily switch themes for pages, but not posts. Is there a plugin that will let me do that for posts?
0
votes
2answers
2k views

Save Theme Options (options.php) From The Frontend

I try to save an option from the frontend but i can't find yet how to do it. So, the idea is to give the blog owner a simple form with a dropdown that can select a different stylesheet.css. I have ...
1
vote
1answer
311 views

Custom options below pages/posts editor?

I want to add permanently boxes below Visual/HTML editor for each page/post. I've never played with custom fields before, and I'm not sure is it way to go? If yes ten tell me, good people of ...
0
votes
1answer
527 views

How to Disable Color Options?

This question is related to my earlier question, but I think it's specific enough to qualify as a standalone question. I am modifying an existing theme (the Twenty Ten theme that ships with ...
0
votes
1answer
374 views

How to add drag and drop functionalities to a div inside option panel

Hi to all it's a few days that I'm trying to add some new functions to my theme option-panel, you can see my questions here: How to add an export function to a custom Option Theme Page Add a preview ...
2
votes
1answer
7k views

Where is default wp_head() implemented?

I'm trying to customize a theme, and I see that the header.php calls "wp_head()". I can't seem to find an implementation of this in the theme, so I presume there is a default implementation that ...
1
vote
1answer
534 views

How to add an export function to a custom Option Theme Page

I'm creating a new Wordpress template and I have a question: I've added a custom Option Page to my new template (you can see what I'm doing Here and Here) but now I would like to add a new function. ...
3
votes
2answers
561 views

Add a preview to a Wordpress Control Panel

I'm trying to create a new wordpress template and inside it I added a Control Panel, inside this control panel there is an option that allows user to choose where he want's to place a on a map, I try ...
3
votes
2answers
852 views

Modify CSS via Theme Control Panel

Hi to all I'm trying to create an advanced control panel for my first Wordpress template but I'm not able to add a function that I will need. The function that I'm trying to add is the possibility to ...
0
votes
2answers
456 views

Hiding Google Analytics code based on theme options

I'm doing up a WordPress theme at the moment, and I want users to be able to add Google Analytics to their site by just adding their tracking code -- you know, the UA-20149670-1 -type number thing. ...
0
votes
1answer
454 views

'Invalid Error' when saving theme options - only in Google Chrome

I have users when get an 'Invalid Error' when trying to edit the custom theme options in my theme, WPFolio. The options (just some CSS rules: page container color, font color, headline/body font, ...
4
votes
2answers
555 views

Submenu pages delete settings from options array when saved

I'm writing a theme and adding a menu with several submenu pages. It works fine, except that I'm trying to use only one array to save all the settings into the database and this is causing some ...
0
votes
3answers
3k views

Can't save options

I created theme options page using Settings API, everything works fine but I can't save options. I tried to figure it out where I missed something but I failed. Any idea what can cause this problem? ...
1
vote
1answer
464 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
679 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
2k 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
3k 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
1k 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
607 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
565 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
764 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
260 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
179 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 ...
6
votes
1answer
20k 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
604 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
188 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
5k 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 ...
5
votes
1answer
1k 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 ...
3
votes
3answers
6k 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. ...