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
0answers
13 views

How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?

I currently have a theme with OptionTree installed. It is used to create a list of locations which are then visible in a dropdown in the header of the page. The display code with OptionTree looks like ...
2
votes
0answers
466 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 ...
1
vote
0answers
36 views

Following Web Performance Optimization techniques to output static and dynamic css

I have always felt the way styles are handled in WordPress is not optimal regarding the web performance optimization (WPO) techniques that are related to css. From a theme developer point of view, ...
1
vote
0answers
62 views

Redux callback action

I'm very new with Redux. I don't know how to show and hide a textarea using switch (without saving). When my switch turns on, the text input displays and when it turns off, the input hides itself. I ...
1
vote
0answers
32 views

Getting the ID of header image, even when set to random

I was looking for a solution to reliably get the ID of the header image, either the user had choose a single or a random image. The only way i've found to do this relies on accessing a Wordpress's ...
1
vote
0answers
96 views

Getting Theme element into plugins page editor in wp admin

I'm having a hardtime integrating a theme editing element (in default page/post editor in wp-admin) into page/post editor made by the plugin BU Versions. Basicly I need this theme element to ...
1
vote
0answers
1k views

Create an Options page with two image upload fields

I’d like to build a simple and clean Options page with two upload fields and a preview of the uploaded images. I tried a lot of frameworks like NHP and UpThemes but they are way to heavy for my ...
1
vote
0answers
135 views

Only allow site url in text field using wp_kses/wp_filter_nohtml_kses?

I'm working on validation for a theme options page. Is there a built in way to add an argument to wp_kses/wp_filter_nohtml_kses that will allow a specific link to be entered(wrapped in a tags) but ...
1
vote
0answers
381 views

Validating a cloned/repeatable input (jQuery)

I'm trying to create a repeatable field an upload image input with image preview for my Theme Options page and I have the following: function theme_options_validate( $_POST ){ if (isset($_POST['...
1
vote
0answers
93 views

Are un-sanitized theme options more vulnerable to malicious scripts than the theme editor?

I'd like to put text areas in a theme options area to allow users to easily add analytics code, scripts, and css. Is it silly to worry about malicious code being inserted via un-sanitized theme ...
0
votes
0answers
14 views

How can I execute a custom function using the form fields when I save a theme options page?

Sorry for the clumsy title. I don't know the mechanism I'm looking for so it's hard to create a good title. I have a Theme Options page with several fields and it works fine. However, I would like ...
0
votes
0answers
16 views

How to create some “theme settings” page in admin?

I'm using today some PHP constants in my functions.php to define default info about my company, as follows: define('COPYRIGHT', 'copyright_text'); define('CONTACT_EMAIL', 'oi [arroba] studiosolo.net')...
0
votes
0answers
32 views

Get option selected programmatically

I am building a theme options page which will auto activate WooCommcerce. The users will also import demo content which will contain WC pages like Cart, Checkout, My Account and Shop. In the theme ...
0
votes
0answers
51 views

Retrieve uploaded image attibutes value from option tree theme options

I'm using option tree for my theme options page. But I can't retrieve uploaded images attribute like alternative text, description,caption etc. How can I do that.
0
votes
0answers
21 views

Everytime I press Save Settings from a Plugin it redirects to All Settings page

I have developed a settings page for a theme in which I'm working in order to have some options to customize it. Here are all the options and here is the functions.php. I don't know why but when I'm ...
0
votes
0answers
64 views

Enable/disable code in functions.php with options

Is there a way to enable or disable lines of code in a themes functions.php file? Basically I would like to have a page in the admin panel that lists "modules" or separate php files and has the ...
0
votes
0answers
17 views

Is it Possible to get the theme textdomain name of random themes?

I haven't found a solution after a few searches about my topic. I hope that I am not making a duplicate post. I am working on a script that will be included with a theme in the theme directory ...
0
votes
0answers
20 views

Image upload on theme option page

I've found this script for adding some theme options in wordpress. add_action( 'admin_init', 'theme_options_init' ); add_action( 'admin_menu', 'theme_options_add_page' ); function theme_options_init(...
0
votes
0answers
46 views

Create new sidebars trough admin post/page metabox

I have this bit to register sidebars dynamically: function my_custom_sidebars() { $sidebars = get_option('my_theme_sidebars'); // get all the sidebars names if ( ! empty($sidebars) ) { // add a ...
0
votes
0answers
13 views

How to create more than 3 screens in OptimizePress 2.0?

I want to create a landing page on OptimizePress and I have trouble in creating structure of landing page. Can’t create more than 3 screens in my small project, in constructor all good but in the site,...
0
votes
0answers
38 views

Theme Customizier sanitize_callback not working

I have a theme option to set the slider speed. The sanitize_callback function is not working. I would like the function to set the speed to 4000ms if a non numeric character is entered. function ...
0
votes
0answers
276 views

Getting Redux Framework Warning

I am working on a WordPress project which is using Redux Framework. I am getting error. Redux Framework Warning select2-css CDN unavailable. Some controls may not render properly. Please wait a ...
0
votes
0answers
20 views

How to expose theme customization to public?

Usually on theme demo, it has gear icon on top left side. Clicking the icon reveal theme customization such as layout, color, font, & background image preset. How can I make that feature? or any ...
0
votes
0answers
63 views

Textarea is not working for html content in backend theme option

I have used vafpress framework for manage theme option and metaboxes all had gone well but now i have an issue on textarea option. I have used textarea type for booking section and it is not ...
0
votes
0answers
150 views

Adding a meta box fields to child theme options page

I created a custom options page for may theme using this code: add_action( 'admin_menu', 'jrl_add_admin_menu' ); function jrl_add_admin_menu() { add_menu_page('Options', 'Options', '...
0
votes
0answers
79 views

display specific redux options section for non-admin

i have redux framework options in my theme and i'am asked if i can display specific section of options to non-admin users this is snippet code Redux::setSection( $opt_name, array( 'title' => ...
0
votes
0answers
130 views

How to upload theme: Option Tree WordPress Theme Check Error

I am having a little problem uploading my theme to wordpress as the initial theme check fails with the below error.. I have integrated Option Tree into my team. But WordPress doesn't accept until the ...
0
votes
0answers
114 views

How to create a “menu item” on the theme customize screen?

My question is, how do I create a menu item as seen below but on the theme's menu customize page? "Theme Menu Options" Show's up here, But it does not show up here, Here is the code I used to ...
0
votes
0answers
59 views

How do I handle styling between SASS and theme options?

I've been looking into leveraging SASS to handle styling my themes and the thought of storing various styles in variable to be used across the site is really helpful! Eg. I am able to store the ...
0
votes
0answers
57 views

Displaying multiple custom meta fields on the fronted

I am trying to simplify how I display multiple metabox entries on my front page through a custom theme panel. As of right now I have a custom panel called explore which is programmed in my custom ...
0
votes
0answers
17 views

Settings API Tabs overriding each other and not saving

I am using the Settings API to create custom options as well as tabbed navigation to organize those options on the screen. All the tabs use the same option group, but each tab is saved under its own ...
0
votes
0answers
55 views

Using Customizer value in an external PHP file inside a theme

I'm working on a theme for a company and they don't want the users to touch the code at all. So as I love, they asked me to use Customizer API. Now, there's a PHP file in the theme which we don't ...
0
votes
0answers
18 views

Theme settings are not shown on the settings page Help

My problem is that my changes are not displayed on the Theme settings page. Can anyone help me? The site is Materialize-wordpress.com Here is the code: <?php add_action( 'admin_init', '...
0
votes
0answers
98 views

Dropdown pages in Settings API

I am working with theme option. There is dropdown option like this. 'memory' => array( 'type' => 'select', 'label' => __('Memory', 'fw'), ...
0
votes
0answers
17 views

Updating a dashboard option from a page template

I know how to create a dashboard option, set a value to it in the dashboard, and retrieve this value from a page template. But is it possible to update this value not from the dashboard but from a ...
0
votes
0answers
60 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
0answers
363 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
0answers
44 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
87 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
158 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
0answers
139 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
0answers
496 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 ...
0
votes
0answers
188 views

Slightly modified options framework Colour picker

I'm using slightly modified options framework for a theme I'm working on, I have used this before with other themes but never had a need to use the colour picker. I need to be able to allow the user ...
0
votes
0answers
189 views

404 Error is showing when open page posts

I just downloaded the video theme from templatic, when i am displaying videos from the thumbnail, it shows 404 error Link to the page It is not showing the video, how to avoid this problem and show ...
0
votes
0answers
98 views

Calling information from my theme options page

I'm setting up a theme options page, I used it on a previous theme and thought i could easily just copy it over to the new one. <?php $options = get_option( 'sample_theme_options' ); ?> <?...
0
votes
0answers
67 views

Set option to show the slider in post - WP

In the WordPress admin/dashboard under "Add New Post", I want to set an option for if someone wants to show posts in a slider: Yes/No. And upon the option I need to do something like this in the ...
0
votes
0answers
177 views

Theme Options Doesn't Work On WP Multisite

I'm developing Wordpress themes and I'm having an issue with Theme Options on Wordpress Multisite (WPMS). My theme works like a charm on classic Wordpress (WP) installation but when I try to use it ...
0
votes
0answers
77 views

Theme Option fields not showing

This is my theme option code link. Why can't I see my fields?. I got this tutorial from WordPress Premium Theme Admin Part 2. I don't want tab in this theme option, so what are codes here, I need not ...
0
votes
0answers
84 views

Theme options: Display ID of page options

I am building a theme options page and everything is great. There is a function to display the list of page options. $all_pages = get_pages(); $page_options = array(); $page_list = array(); $...