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
2k views

How to Use Checkbox in Custom Option Page Using The Setting API

Can you please let me know how I can add a checkbox to Setting API in creating Custom Options Page? I am using the following code to add a txt box which is working perfectly but I am totally confused ...
0
votes
1answer
109 views

Error on using __FILE__ for add_menu_page() Function

I am trying to creat an custom option page but I ham getting error on setting the add menu page() function. I need to use the FILE as the $menu_slug 4th parameter of the function ...
0
votes
1answer
60 views

Updating Style From WP Options Setting Page

Can you please let me know how I can set a function to update change the style like any CSS class from the setting option page? For example I have some <P> elements with a class name .impo. Now, ...
0
votes
2answers
4k views

[&hellip appearing instead of […]

There is some problem with my wordpress website, instead of [...] I am getting [&hellip everywhere. I have changed the charset to UTF-8 but the problem persists. Any help would be appreciated. ...
-1
votes
1answer
258 views

Church hope them issue

I'm using the church home theme and can't figure out how to modify the three images under the download button page. ...
4
votes
1answer
921 views

Understanding wp_add_inline_style

I am trying to get my head round the wp_add_inline_style() function in WordPress. //setting inline css. function my_styles_method() { wp_enqueue_style( 'custom-style', ...
0
votes
2answers
130 views

Shortcode or placeholder for theme options page?

I'm writing a theme options page that provides a space for the user to enter code for social buttons e.g. <a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php ...
0
votes
3answers
136 views

Changing the color scheme based on the url visited

I am battling with the following: $themeId = ""; $pathname = get_site_url(); if($pathname == 'domain2.com'){ $themeId = "gold";} else{ $themeId = "blue";} ...
0
votes
1answer
65 views

Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?

I have a function that is designed to do two things: 1) create color picker controls/ settings in the customizer and 2) create a multi-dimensional array $customizeData to be outputted in header styles ...
1
vote
1answer
30 views

For best DB performance should I serialize all theme options together or by type?

If my theme has a lot of options is it better to store all options in one database entry, or to use a databse entry for each group of options? IE would I name all options like this ...
0
votes
1answer
72 views

IF statement not falling over to ELSE with Options Framework

I am using the Options Framework to give the theme user the ability to upload their own background image. I have an image upload option with option ID = page_background. In header.php, I have: ...
0
votes
2answers
168 views

How do you center the main menu in CSS? [closed]

Do any of you know of a way to center the main menu on my company's site? I have been trying all day and am frazzled! I've tried editing the stylesheet but nothing has fixed it. I've tried throwing ...
0
votes
1answer
199 views

Passing dynamic options from backend to frontend

I have created an admin options page (using the Redux Theme Framework), in which the admin can customize the website's appearance (text color, background color, background repeat options, etc.. ). ...
1
vote
1answer
35 views

Set multiple templates per post

In Joomla! articles can use multiple templates. I could only put ath the end of url ?template=templatename and article uses the template "templatename". Is this possible in Wordpress?
0
votes
1answer
45 views

WordPress Customize panel - accessing the values

Here is the code I'm using to add the section to the Customize panel. function apple_customize_register($wp_customize){ $wp_customize->add_section('apple_footer', array( 'title' => ...
0
votes
0answers
72 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 ...
-1
votes
1answer
57 views

Where to add the code for an outer container in a theme?

I have a Wordpress theme installed (SimplePress) and I would like to add an outer container to it, and I don't know exactly in which file should I add the code. This is the code I tried to use: ...
0
votes
0answers
76 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(); ...
2
votes
2answers
294 views

How to mark an option as selected

I want to display post categories in theme settings, and I successfully did that using this code: <?php /* Get the list of categories */ $categories = get_categories(); ...
2
votes
1answer
270 views

Passing boolean values with wp_localize_script

I am using wp_localize_script to pass a couple of values from my theme options to a javascript file. First I got the values from my theme options: $options = get_option('theme'); $flex_auto = ...
0
votes
2answers
405 views

Theme automatically inserting “more” tag on every post

I'm using the free Lensa theme and it seems like it inserts a "more" tag in every single post when viewing by category, and the point at which it inserts it is proportional to the length of the post. ...
0
votes
1answer
91 views

Trouble saving wp_dropdown_pages()

I'm really hoping that someone can help me out here, I'm trying to give the admin the ability to choose a page for a button to link to. I've created the select using... wp_dropdown_pages($args) ... ...
0
votes
1answer
483 views

Theme Option's Save Button is not working

I'm currently working on making an options panel for a theme (theme-options.php) on my localhost. Every thing was going well until I tried testing the Save button. After clicking it, I got the ...
-1
votes
1answer
243 views

Options.php loop won't show!

I'm creating an options panel for a theme on my localhost that's stored within the options.php file. My options panel will have two main loops. The first is to list the different sections and the ...
5
votes
1answer
1k views

How To Add New Option Types To Option Tree?

I am using option tree in theme mode and child theme mode and I am trying to add new option types. The new option types will be based off of the post-select option type, but will only list posts from ...
0
votes
1answer
41 views

Wordpress Options Page Theory Question

I created an options page and it is functioning perfectly, but I am not sure I understand how it functions. It's cool I got it to work but I was hoping someone could help explain why it works. Here ...
1
vote
1answer
95 views

How do i place same widgets multiple time by default on theme activation?

I am creating a portfolio theme and want to place some widgets on sidebar by default on theme activation. I did it but the problem is that, I want to place Text widget two times at the same sidebar ...
0
votes
1answer
71 views

Turn get_posts as string into an array for use in theme admin options

I am trying to add a drop down list of all posts into a theme admin section...without forklifting the theme code. I need to pass the post title and id into the 'options'=>array() like so: ...
0
votes
1answer
71 views

How to load dynamic option with ajax

Basically I'm creating an options page in which the user will click on a button to display a text input field, which will then be populated by the user with a name. This name will be then saved into ...
0
votes
1answer
865 views

change the Theme dynamically

Is there some way to change the page template dynamically using just a url I wanna use it in a demo theme, so for example when the user enters a particular URL ending with for example ...
1
vote
1answer
37 views

Removing \\\ from Saved Data

I am saving some text to a setting field for use in an email template. So the text that is being put into the textarea to save looks like this... <p>some text <a ...
0
votes
1answer
60 views

Add multiple pages to theme customizer

So that theme customizer over at /wp-admin/customize.php is pretty cool, but it looks like it only lets you customize one page. Is there any way to add multiple pages or other theme template pages to ...
2
votes
1answer
503 views

Best practice way to implement custom sections into a WordPress theme

I'm having trouble figuring out the best way to implement custom sections in a WordPress theme. For example I'm making a theme that will have four featured sections on the homepage. These sections ...
0
votes
1answer
127 views

Consequences if using PHP include TEMPLATEPATH?

I have created a Theme Options page using Settings API so now I need to style it using CSS. Instead using function like this inside functions.php function mytheme_add_init() { if ( is_admin() ) { ...
0
votes
0answers
69 views

Custom widgets in theme option page

I'm trying to create a simple theme options page that uses widgets to change the layout of content on the front page. I started off by using meta boxes not realizing that the position is based on ...
2
votes
3answers
568 views

How to export/import theme customizer settings?

I am wondering if it is possible to export theme customizer settings(theme_mods) to be imported into another install of the same theme. I know that the settings are saved into the database so I am ...
0
votes
1answer
503 views

Creating Theme Options Page

I was creating a theme options page based on a tutorial by Tom McFarlin at TutsPlus and I'm a little stuck. I can't understand where the code goes bad here, because it doesn't allow me to access the ...
-1
votes
1answer
41 views

Bring up the media uploader on click

In my theme's options page. I want to have a textfield where a user can enter a http path to an image. and have a button beside it which brings up the media uploader (library) where a user can ...
0
votes
0answers
77 views

Multiple homepage layouts as selected by user from theme options

I am working on a theme which will enable users to select multiple layouts from the theme options panel. What I did so far is to create multiple theme files, depending on each theme, put it in a ...
0
votes
1answer
253 views

How to extend customize control types to list pages

I have: I'm currently using $wp_customize to add options to the customize theme area. My Goal: My goal is to extend $wp_customize so that I can display a list of available pages as checkboxes. I've ...
0
votes
1answer
217 views

Wordpress theme options framework, I can't read them in my templates

I successfully created my theme options page using this framework: https://github.com/devinsays/options-framework-theme The problems Is that when, for example, I try to load the Option: 'logo_image' ...
0
votes
1answer
95 views

Not able to call class in NHP framework

I have downloaded fresh framework and installed on my local server. I copied options folder and nhp-options.php inside my theme directory. Then I called the class globally by global $NHP_Options; ...
2
votes
1answer
181 views

Is it safe to post form data via Ajax to the settings api? Am I missing something?

In my Wordpress Admin, I have my theme options set-up using the Settings API. I am trying to save the theme options form using Ajax so that the page does not refresh. The only thing i needed to add ...
0
votes
1answer
99 views

How to check if a categoryID exists in a theme options page

I have tried to make a theme options page (starting with a sample theme options page from themeshaper) and I want to check if a comma separated list of categories is valid. Remove duplicates, remove ...
1
vote
1answer
144 views

Is it possible to save more than one image to an option?

The following code allows you to upload multiple images but only one is saved to the option. Can multiple images be saved to the option as an array or would I have to create separate controls? ...
0
votes
1answer
626 views

wp_deregister_script was called incorrectly

So apparently I am now allowed to do the following in the admin, ON my theme options page and only ON my theme options pages: public function load_admin_jquery(){ ...
1
vote
0answers
69 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 ...
0
votes
2answers
574 views

Color Options from Theme Customizer API not returning via get_theme_mod()

I am working with the Theme Customizer API and am going crazy trying to find the stored values. The values successfully save and update on the front-end, so they are obviously registered ...
2
votes
1answer
390 views

How can one utilize a variable as a callback function name for add_settings_field

I'm trying to cut down on the amount of code that is in my theme options function. I'm adding my settings like so: add_settings_field($k,$v,$callback,$the_options,$the_group,$args); This works for ...
0
votes
1answer
72 views

Is there an action for save_menu and/or update_menu?

I want to "save" my menus into transients. I want to update those when there's been any changes to the menus via the admin custom menus. I've looked for an action but can't see to find anything. ...