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

0
votes
2answers
55 views

Can you get the themes options page to turn on/off which custom post types are registered?

I have a theme that is being used for a multisite installation that will be used by 6 sub-brands of an organization. Each sub-brand will only require some of the custom post types set up by the theme ...
4
votes
2answers
101 views

get_option() vs get_theme_mod(): Why is one slower?

I've been using get_theme_mod() for some time in various projects of mine. I decided to take advantage of the Theme Customization API in WordPress v3.4 once it was available as I felt it was an ...
0
votes
2answers
28 views

The best place of the code for creating a robots.txt file

I'm using the Option-Tree framework for the options of my theme. Now I want to add the option to create and edit the robots.txt file. First, I have the function to get the content of the file or ...
0
votes
2answers
21 views

Is there a better way to define options for custom fields in an admin panel?

I've currently got this: $num = 1; while($num < 6) { register_setting( 'front_page_options', 'slide_title_'.$num ); register_setting( 'front_page_options', 'slide_description_'.$num ); ...
0
votes
0answers
20 views

Create a Theme Option with Google Analytics

I'd like to create a theme options page just to put a text area so my clients can add the Google Analytics code in the WordPress panel. I have looking for this, but I can't find anything specific ...
0
votes
1answer
15 views

How to extend parent theme sections and settings to Options Tree

I am developing a child theme based on a theme that use Option Tree for it's options. Is it possible to add a new section with my child theme settings to the already defined sections by parent theme ...
0
votes
1answer
21 views

Using update_option() and get_option() is echoing escaped strings

I'm using the Option API for my theme settings page. I use the $_POST data to update the options when the changes are saved. My issue is that the strings I send get escaped and when I use this code: ...
0
votes
0answers
21 views

How to escape custom css?

I'm creating a WordPress theme in which I've allowed users to add some custom css from the Theme Options. This css code then directly gets echoed out in the head section of the page, with the ...
0
votes
0answers
28 views

Google font doesn't show in theme option

I have implemented the following tutorial in my theme's option panel. http://wptheming.com/2012/06/loading-google-fonts-from-theme-options/ Every thing is working fine. But in the themeoption panel ...
0
votes
0answers
18 views

Theme-Option-Panel: Select List of Pages, Childpages and Posts

I just can't solve this problem: in the wp dashboard I want the user to have the option of selecting between all pages, sub-pages and posts (also custom-post-types) for displaying them in special ...
0
votes
0answers
35 views

Integrating Option Tree in my plugin

I am striving my best to integrate Option Tree plugin in my plugin, but couldn't integrate. Basically, when we want to integrate Option Tree in your Theme, you use below code in your functions.php ...
0
votes
1answer
60 views

PHP if have image display image, if else text

I'm a front-end web developer struggling with some theme option support. I am struggling to write a simple function in my header.php which allows me to do the following: "if user uploads an image, ...
0
votes
0answers
18 views

How to add the scheduled posts in existing content link in hyperlink

I am blogging with scheduled publication. Say, I have content "1" (complete and saved already) scheduled to be published tomorrow Now I have another content "2" (complete and saved already) ...
0
votes
1answer
13 views

How to make javascript work on theme options page

Gentlemen! I'm composing a theme options page for my WP theme. And I bumped into the problem of finding the proper way to introduce inline jQuery interactions to the page. Ideally for me in the ...
0
votes
2answers
91 views

How do I add new post formats to twenty fourteen theme?

I haven't used WP since 3.5 so forgive my rustiness. I am trying to customize a child theme of twenty fourteen for WP 3.9.1 to make it more like a corporate site rather than a magazine site. My ...
0
votes
1answer
16 views

Adding a theme option to the admin that lets me turn on/off a javascript file

I want to add a theme option to the Wordpress admin so that I don't need to commit code every time I need to "activate" (or deactivate by commenting out) an Optimizely javascript snippet I only want ...
1
vote
1answer
33 views

Which settings/options are saved on a theme-basis and how does this affect theme-switching?

I realized that when switching the theme (in my case to a child theme) some things don't stay the same: Widgets Menus At least this is what I found out so far: Widgets Don't lose widgets when ...
0
votes
0answers
27 views

default value not getting displayed in input field

I have written code for creating theme options but default values not getting displayed in text field Also settings saved message also not getting displayed <?php // Default options values ...
0
votes
1answer
52 views

Php file that doesn't recognize wordpress functions

I have a custom contact form that I am trying to process in other file: The form: <form method="post" action="<?php echo get_template_directory_uri() . '/templates/contact.php' ?>" ...
0
votes
1answer
58 views

Deactivate a plugin on wp version

I've creating a theme options page at the moment and was playing around with this function deactivate_plugins() I'm running wordpress 3.8.3 so running this code in my plugin should uninstall it. ...
0
votes
1answer
52 views

Sample Theme Options page for Multisite - what to consider

I used Theme Options page from the Tutorial of Ian Stewart in some of my WP site, and it works just fine. What I did externally was this (closest English Tuts). All those sites were single sites. But ...
1
vote
1answer
24 views

How to understand a specific bit of Wordpress syntax

I am changing a theme in Wordpress, and in an earlier theme, there was something like this that added a an email signup widget to the page: [green_tick_1_list width="100%"] But in the new theme ...
1
vote
1answer
100 views

Media upload not working on theme option in WordPress 3.8.1

I have this jQuery code in my plugin to display a media box preferably to upload an image or to pick an image from the media gallery: (function($){ jQuery(document).ready(function() { ...
0
votes
0answers
28 views

Serialization problem after auto-update

I am having a problem with WP serialization. To cut a long story short: the problem appeared two months after the site launch. All the strings of text that were stored as a theme_option or as a meta ...
0
votes
0answers
114 views

WordPress theme options settings not saving

I have problem with my theme options settings saving. My settings is to saving to permanently , its just only save when you stay on the theme options page after saving the settings. But when I go to ...
0
votes
0answers
81 views

WP_Customize_Image_Control is not doing very much

I am trying to add a logo option. The section and the option shows up under Appearance - Customize as expected. It offers me to upload an image. I do that. The image gets uploaded, but the option ...
0
votes
0answers
32 views

WP_Customize->add_control Navbar Background Image

I'm having trouble figuring out how to properly add a setting under Navigation in the Theme Customization page in order to customize and specify a background-image to use in the navbar.. similar to ...
0
votes
1answer
390 views

“No Data Received” error in Chrome every time i try to update the theme functions file

Under Appearance --> Editor --> functions.php ( Theme functions ), whenever i try to modify a piece of code in it and click Update, i get this "No Data Received" error in Chrome. I never get this ...
0
votes
0answers
15 views

Add capability to role for all sites in network

We are running a multisite install. I want to add the capability to edit menus for contributors. I am doing that with this code: $role_object = get_role( 'contributor' ); $role_object->add_cap( ...
0
votes
3answers
120 views

Customize Option Framework

I was trying to create a Option Theme Page for my theme and I wasn't able. Today I found the Option Theme Framework but after some time I really can't understand how to use it. In particular, I'm ...
0
votes
1answer
39 views

Settings API settings section not appearing

Settings API always been a little confusing for me. I am trying to add a simple theme options page for a child theme I am developing. I guess I am doing something wrong that preventing the section ...
0
votes
1answer
32 views

Wordpress Setting page can not be saved by html radio

I have this php Code to make a option page that activate a function if the user set "active" and turn off the function, if the user set "Not active". <?php add_action('admin_menu', 'custom'); ...
0
votes
0answers
31 views

Minify style.php in head of index.php

I currently have a WordPress theme options page. I read all the theme options styles in style.php which I then include in the head of my website. Does anyone know how to minify this style.php file? ...
0
votes
0answers
40 views

Best practice to separate translate Backend and Frontend

I currently building wordpress themes, using customizer for almost all part of themes it self. also bundling it with own themes option. i wonder how the best practice to translating backend but ...
0
votes
2answers
658 views

Warning: Illegal string offset on theme options page [closed]

Im creating custom theme options and Im getting this PHP error: Warning: Illegal string offset in ... on line 75 // adding the page to menu add_menu_page('Theme Options', 'Theme Options', ...
0
votes
0answers
278 views

Creating custom theme options page

I am creating a theme for a client and it has a custom front page that has a slider and displays the services they offer. I am looking to add an options page where the client can easily update the ...
0
votes
0answers
37 views

Options not saving

My options were saving properly then I edited the files and it's not saving anymore. I undo the changes on the files and I'm sure that those were the only files that I edited. One section saved ...
0
votes
0answers
53 views

File input returns null in theme options array

Trying to work out a rather complex array situation with a theme options page. While working with file upload I can't seem to get it to work. Any idea what I might be missing? Simplified example ...
0
votes
1answer
55 views

theme options not saving

I've created a really simple theme settings page to just enable my user to add some social media links. However when I input some data and save the fields the text vanish's and doesn't seem to save. ...
0
votes
0answers
24 views

How to have multiple sections within the same theme options page

For my theme, I have created a Settings Page which is shown in the Appearance menu of Wordpress admin. Now, I have been following this tutorial. Exactly like the tutorial, I have created multiple ...
0
votes
3answers
49 views

Do we need to escape data that we receive from theme options?

I'm creating a Wordpress theme that I'm hoping to sell on Themeforest. Now I know much about escaping user inputted data using functions like esc_html, esc_url and so on and I use them in the comments ...
0
votes
2answers
173 views

How to deal with multiple select options using register_setting() theme options

I'm using Ian Stewart's Sample Theme Options for a lightweight Theme Options panel. INSERTION FAILED I need to insert Multiple categories into db, where I used the following code: <select ...
1
vote
0answers
55 views

Cloning/replicating/copying dashboard admin settings

I have a local multi-site installation for my different client projects. For a given project, I need to have the same theme installed locally as the online site's theme. But I also need the same ...
0
votes
1answer
25 views

Can I have two different theme for two different language?

I have to develop a multilanguage website using WordPress (Italian and English) and I want to know if I can have a theme for the Italian version and a differen theme for the English version. Can I do ...
0
votes
1answer
58 views

How to enqueue javascript for WP Customize options sidebar?

I'm trying to add Chosen.jquery to the WP Customize options panel, so I can have an autocomplete box there. Is there any way I can do that? I tried with admin_init, admin_footer and ...
0
votes
2answers
22 views

Can't add options to db

I'm trying to create a really simple options page for my wordpress site that just contains one option - a conversion rate for a currency. I have the following code: add_action('admin_init', ...
0
votes
2answers
115 views

Activating a Theme Options page to Editor - not working [closed]

I used Ian Stewart's Simple WordPress Theme Options Page (Source^) for my client's site, where I assigned my client as an Editor. But from the Editor account the Theme Options link is not visible. I ...
0
votes
0answers
125 views

Using Custom-meta boxes(CMB) to create an Admin Theme Options Page

I've created a Theme Options page using CMB, but the values don't seem to save. I've included the php class in my functions.php, and the theme options page loads fine, with all custom meta boxes ...
-1
votes
4answers
61 views

Preserve theme settings when migrating from local to live

Whenever i try to move the website from local to live or viceversa Theme Option settings resets. Exporting the settings and importing it couldnot restore the images which is an upload field(P.S.it ...
0
votes
0answers
71 views

How To Display Value from Theme Options Field in Front End Template?

I put this code into my functions.php https://gist.github.com/corvannoorloos/4703066 and it work nice. Now I want to display value from Sample Select Options filed in some front-end templates. How ...