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
0answers
17 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
11 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
28 views

Display Custom Post Types depending on checked radiobutton

I have created this option page for custom post types: add_action('admin_menu', 'add_global_custom_options'); add_theme_support( 'post-formats', array( 'Random', 'Order', 'Category' ) ); function ...
0
votes
1answer
16 views

How Can I Register Menus and Widgets Conditionally Based on Theme Options/Settings?

I have theme options/settings page and options/settings fields set as outlined here: ...
0
votes
1answer
23 views

Category select options for plugin settings

I am using Aqua page builder and I want to incorporate dropdown catagory select field for that. <?php $my_options = array ('one' => 'My Pony','two' => 'His Pony'); echo ...
0
votes
1answer
29 views

Build Form on Dashboard

I want to create custom form on my 'Theme Options' Basically, I already build this : /* == THEME OPTIONS == */ // This tells WordPress to call the function named "setup_theme_admin_menus" // when ...
0
votes
0answers
19 views

Option data is not overwritten in option table

I am new to WordPress theme customizations and I am stuck at one point: I have to create a header drag and drop option, with 3 types: Logo Logo + Search Logo + Icon The code ...
0
votes
1answer
66 views

Theme Options Page - User Updates Logo

I'm a newbie to WordPress Development so bear with me. Site: https://wordpress-portfolio-zacnespral21.c9.io/ On the site above I would like to add an option in the themes options page for the user ...
0
votes
0answers
19 views

Set widget class & page assignment in theme options

Is there a way to list all widgets by the sidebar in the backend eg in a theme option panl to set a class and the assignment to pages? Like this... I use for theme options redux framework. i hope ...
0
votes
0answers
15 views

Coding color opacity options in theme options admin panel

I wanted to give the user the ability to change the opacity of a navigation menu background color from the theme options admin panel. I have already been able to achieve giving the user a color ...
1
vote
1answer
64 views

How to create dependent field in Customizer?

I am trying to have dependent field in Customizer. One field is checkbox Enable Custom Excerpt Length. Another is text field Custom Excerpt Length. I want to implement contextual field using ...
0
votes
1answer
14 views

How to make a hyperlink conditional according to whether you are logged in or not

one of the sections on my home page has a hyperlinked header. I have a multi-user site so I would like that header to take the user to a specific shop category (product-category/aktiviteter/) if they ...
-1
votes
1answer
37 views

Multiple instances of Redux WP Framework [closed]

Is it possible to have multiple instances of Redux WP framework? Not subpages, i need multiple separate instances since 10+ subpages with tons of options is really really slow.
0
votes
2answers
53 views

Generating dynamic css into custom file [closed]

This is about running code on wordpress . The given code runs properly outside wordpress but when I put it on theme functions file it does not do anything. ob_start(); require('dynamic-css.php'); ...
0
votes
0answers
7 views

Is there any better way to reach get the options value with depth 3

This is how I am getting the option result right now: <?php $options_list = get_option( 'my_custom_fields_options', 'no value exists' ); $practice_areas = ...
0
votes
0answers
42 views

Change theme layout via “Appearance Customize Screen” on per user basis

I have added some options to the "customizer screen" in the appearance settings on the dashboard of my Wordpress Child theme. All works well by specifying additional headers and theme color options in ...
0
votes
1answer
34 views

How add built-in textarea in theme development?

How can I add built-in textarea instead simple textarea in Wordpress v4 like when I hit Post -> Add new in theme development? I need to add it to theme options page ...
1
vote
0answers
23 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 ...
0
votes
1answer
94 views

How to get DB options format without saving? [closed]

Using Unyson framework. I am getting theme options form data saved to a file. Was able to do that via ajax and JSON.stringify(form values in json format) problem I have is that the form data ...
0
votes
0answers
28 views

Filter the options page sections output

I have not found a way around this. It seems Wordpress does not offer this in the settings API. I have created a wordpress options page. I have attached options sections to the page. And then I have ...
0
votes
0answers
32 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'), ...
2
votes
1answer
26 views

Is there a way to activate different theme for specified users? [closed]

I'm looking to allow beta testing of a theme on WordPress site in production. I was thinking of a plugin to check if WordPress user has been selected for beta phase, and if this evaluates to true ...
0
votes
0answers
78 views

Dropdown list of Tags, Posts, Custom taxonomies in Options panel

I've been working with WordPress Settings API to create an options page for a plugin. Everything is fine except for displaying select dropdown lists and checkbox lists for WordPress tags, posts and ...
0
votes
1answer
27 views

Theme options are they necessary

So I have decided to use wordpress for a site. But just as I begun I realized that I might need options. Things as simple as logo, favicon and possibly some parallax settings. Is it necessary to have ...
0
votes
0answers
16 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
2answers
76 views

Setting field not saving on front-end

I'm creating a theme option page and i try to display the values of two input in my front end : function register_my_header() { register_setting( 'header_options', 'header_options'); } ...
1
vote
1answer
477 views

Theme Options page not showing up in admin menu

I'm currently developing a WordPress theme and would like it to have a preferences pane in order to specify the user's Google Analytics tracking code for example. Following the instructions I got on ...
1
vote
1answer
113 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 ...
0
votes
1answer
105 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
126 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
108 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
26 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 ...
0
votes
0answers
103 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
347 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
38 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
92 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
184 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
58 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
39 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
72 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
199 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
1answer
183 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
105 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 ...
7
votes
4answers
2k 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
40 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
32 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
53 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
213 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
250 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: ...
1
vote
0answers
208 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 ...