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? Here’s code of my options page <?php /** * This functions registers default options values for Evolutionary theme * … Read more

theme options echoing multiple times

I tried to strip down the Twenty Eleven theme options page and add my own fields correction: I followed a tutorial somewhere, but when I try to echo the data, it comes out multiple times. Here is my theme-options.php: http://pastebin.com/HSZM56jA This is how I am echoing it: <?php $options = get_option(‘gavsiu_theme_options’); echo $options[‘message-primary’]; echo $options[‘message-secondary’]; … Read more

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, ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, ‘header_fixed’, array( ‘label’ => __( ‘Enable fixed navigation?’, ‘theme’ ), ‘section’ => ‘header_section’, ‘settings’ => ‘header_fixed’, ‘type’ => ‘checkbox’, ‘priority’ => 40, ) ) ); If the above value is … Read more

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

Closed. This question is off-topic. It is not currently accepting answers. Asking to recommend a product (plugin, theme, book, hosting provider), tool, library or off-site resource is out of scope of the site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. Closed … Read more

Change setting name in Customizer and keep the data

I created a theme while back when I was new to Customizer API and for some weird reasons I named theme settings as: $wp_customize->add_setting(‘thefunk_theme_options[header_color] Instead of just header_color and saved every setting in an array like thefunk_theme_options[header_color] So I recently found out that it’s generating some issues, so I want to save every setting, let’s … Read more

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 this: <form action=”” id=”formsel” method=”post”> <div class=”locations”> <?php $location = ot_get_option(‘location’);?> <label for=”country_id” class=”no-display”>Select Country</label> <select name=”country_id” id=”country_id” … Read more

How to hook CSS file according to theme selection in the customizer section

I have added a new area in the Customizer section which allows a user to choose whichever theme colors they want: But I don’t know how to activate/add CSS files according to the selection. i.e. add green.css if green theme color is selected or add blue.css if blue theme color is selected. 1 Answer 1 … Read more