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

1
vote
1answer
59 views

What's the proper way to include inlined javascript-source?

I'm making a theme where I'm including a javascript-lib which wants to be loaded/instrumented with a potion of generated code at document.ready()-time. Generated because some theme-options are ...
-2
votes
0answers
15 views

how to import a json setting file from code in redux framework? [on hold]

I use redux framework for option panel of my theme. Redux has ability to import/export setting files, I want import a setting file(.json) from code, but i don't know how? I searched in code of redux ...
-3
votes
0answers
11 views

add 4 column grid layout instead of list layout [closed]

I have using the woo-commerce plugin to built my garments site. And my client wants to show two grid layout column(2 products per row & 4 column per row). I have searched various plugins to do ...
0
votes
1answer
37 views

How to give site owner the ability to change to footer text via theme options (1 post)

I'm working on Settings API recently. Now I can add my theme options item in admin menu.I can register my settings and create my section and fields. And I think I can get the options using ...
2
votes
1answer
37 views

Using jQuery to retrieve customizer value

I am trying to use jQuery to retrieve a theme options (customizer) value: $wp_customize->add_setting( 'header_fixed', array( 'default' => true, ) ); ...
0
votes
1answer
31 views

Let user to add input fields on theme option page

I'm creating a Theme Option page for my own wordpress theme and I've been trying to create something like this on my option page It means my user(admin) can add any number of input fields (in this ...
1
vote
1answer
20 views

making available just some parts of theme option

I'm just starting to understand and learn about how Wordpress works. Now i'm trying to build a simple website (6 pages, gallery, slideshow) by using a downloaded from wordpress.org. The theme that I'm ...
-1
votes
0answers
14 views

Problem in updating theme options values

Recently, I am trying to create a theme options page for wordpress. But when I created created an array $new_values which is responsible for updating new values and i passed it in ...
0
votes
0answers
19 views

How to add a new menu item in “Twenty fourteen” theme?

I've created two menus inside of my theme's functions.php file: register_nav_menus( array( 'primary' => __( 'Top primary menu', 'twentyfourteen' ), 'secondary' => __( 'Secondary menu in ...
0
votes
1answer
20 views

How to reset (clear) theme settings

I'd like to reset (clear) theme settings (from customizer) while activating theme. For example a theme by default has red menu, links and links on hover. I use something like this: function ...
0
votes
1answer
28 views

Changing the layout of a custom options page

I've followed the guide here to create a custom options page for my theme using add_options_page. By default, these are arranged as a list: Ideally, I'd want these options arranged in a grid with ...
0
votes
0answers
30 views

theme_mod and option type in WP_Customize_Manager's add setting API

The WP_Customize_Manager's add setting API support the type argument: type Optional. Specifies the TYPE of setting this is. Options are 'option' or 'theme_mod' (defaults to 'theme_mod') What is the ...
0
votes
2answers
60 views

Calling an custom field from theme option at the frontend

I am having trouble calling a field and displaying its content at the frontend from a custom theme option page. This is the code I am using to display my custom theme option at the backend ...
0
votes
0answers
22 views

Using get_option on radio buttons

I'm really stuck with this one! I have an options page where I presently take some data from input fields. E.g: <input type="email" name="mail" value="<?php echo get_option('email'); ...
0
votes
1answer
30 views

Make Theme Options Menu item more easily / directly accessible

Is there a way to make the Theme Options Menu more visible? It contains my client's many specific options, he will need to access it every once in a while. By default, it's pretty well hidden ...
0
votes
1answer
31 views

Theme Options page not saving data correctly

I am struggling to save the correct data in my themes options page. Here is my code in my functions.php file: <?php if ( get_option( 'everes_options' ) ) { $everes_options = get_option( ...
0
votes
0answers
74 views

Add all typography options with options tree

I'm new to WordPress theme development, and I had to create a theme with options tree. I have successfully add some options with options tree plugin in my Wordpress theme. But I am really stand when ...
0
votes
0answers
48 views

Bring page from sub menu to admin menu in option tree

When option tree is installed the page "theme options" show under appearance. I want to bring it to top level menu item. i did a deep search and so far I found is: ot_theme_options_parent_slug ...
0
votes
2answers
83 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 ...
6
votes
3answers
714 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
33 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
25 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
37 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 ...
1
vote
1answer
80 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
93 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
58 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
107 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
30 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
130 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
146 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
23 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
25 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
489 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
18 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
51 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
44 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
83 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
91 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
85 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
26 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
208 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
40 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
167 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
186 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
37 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
1k 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
23 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
234 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
53 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
38 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'); ...