The theme-options tag has no wiki summary.
1
vote
1answer
14 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
0answers
27 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 ...
0
votes
1answer
24 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
7 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
28 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 ...
0
votes
0answers
13 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
26 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
277 views
Display and hide content using checkbox in Options Framework Theme
I am currently using Options Framework Theme for making WordPress options panel. I created a checkbox in admin panel by this code in options.php
$options[] = array(
'name' => __('Input Checkbox ...
-1
votes
0answers
10 views
Print print wp_dropdown_categories value from admin?
I create a category list (use wp_dropdown_categories) on theme option page, allow user choose the category to show on website. But I dont know how to get the wp_dropdown_categories value from the ...
1
vote
1answer
250 views
Choose To Display Post Views With An Options Panel
I have post views enabled and I'm attempting to make an options panel option to allow users to choose if they would like to display post views in each post. If they choose 'Yes," then they will be ...
0
votes
2answers
156 views
How to change a specific character in a theme option value - replace a space with a plus sign
I'm writing a theme where I'd like to give users the ability, via a theme option, to specify a typeface for their site with Google Web Fonts.
If a user wants to embed a font like, say, News Cycle, ...
0
votes
1answer
27 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
267 views
Admin menus and submenus
I created an options page for admin and displayed it as a top level menu -> add_menu_page($themename, $themename, 'administrator', basename(__FILE__), 'mytheme_admin');
I want to add a sub menu under ...
1
vote
1answer
179 views
Additional custom header_image
Has anyone seen a way to add a new header_image to a theme? I need to add two configurable images in a theme. It doesn't really mater if it gets added as a new "Header" admin theme menu or if it's ...
0
votes
1answer
44 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(){
...
0
votes
1answer
32 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'
...
-1
votes
0answers
24 views
theme options panel [closed]
plz i need help to create simple options for a theme
this an example :
in theme i have this code
<div id="ticker-wrapper" class="no-js">
<ul id="js-news" class="js-hidden">
<?php ...
0
votes
1answer
108 views
Theme Options - localhost to new url
Im having this issue that happens to me each time i work on a website.
On every project i start working locally and once im done i export my Database and search replace all localhost url's to the ...
0
votes
1answer
35 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;
...
3
votes
1answer
186 views
Adding a checkbox to the theme customizer
When trying to add a checkbox to the theme customizer it seems to be 'always' selected. If you try to deselect it you cannot, almost as if there is some JS code forcing it to stay selected.
I am ...
2
votes
0answers
52 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 ...
-2
votes
1answer
25 views
Theme Options Page (Customizer or not?) [closed]
Add theme options to theme CUSTOMIZER or by creating a section in admin menu? Which way is better in your opinion?
0
votes
1answer
37 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
26 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?
...
1
vote
2answers
43 views
Image rotation fails to regenerate custom sized thumbnail
I'm using custom image dimensions in functions.php like this:
add_image_size( 'custom-size-thumbnail', 120, 120, true );
I uploaded some pictures with wrong orientation, so I used "edit" options to ...
0
votes
2answers
71 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 ...
1
vote
0answers
39 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
0answers
34 views
How to backup custom admin panel's settings?
I saw in some premium themes the feature where you can backup the theme's custom settings.
The backup file's content is:
YWlsLmNvbSI7czoxMToic3VjY2Vzc19tc2ciO3M6MTAyOiJUaGFutZSwgyZ etc....
How ...
0
votes
0answers
25 views
Theme Options, Check box not unchanging
Every Option in my theme option will save, weather you enter text, delete text, click a radio box or even check box. How ever, once check boxes are clicked they do not seem to un-check.
I have ...
0
votes
0answers
24 views
Self Made Theme not showing up in Avaliable theme options [closed]
I made a custom theme in my local wordpress. I added a style.css in the folder and an index.php. I also added a Images folder. But my theme is not showing up in avaliable themes! What can be the ...
0
votes
0answers
58 views
Custom Theme Options page permission issue
I've created a custom theme options page for my theme. I've added the manage_options and edit_theme_options capabilities to the editor role and those are definitely working properly. I can save items ...
2
votes
1answer
40 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 ...
2
votes
3answers
2k views
How to prevent escaping when saving HTML code in an option value?
I have a Theme Options page where the user can add certain options like Facebook links, etc. One of the options is for some ad code and when saving it as an option it gets escaped over and over again.
...
0
votes
2answers
119 views
Settings API - save multiple tabs at once
In the attached screenshot you can see the structure of the theme options we are working with. There are 8 tabs and for each tab, we have created custom fields using code similar to what can be seen ...
0
votes
1answer
22 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. ...
0
votes
0answers
21 views
After added two section to theme options, I can't save the content
I added a section for my options, everything works fine. I added a new section (social) and after that I can't save the content of the "General Options" form. The business section is working. Where is ...
0
votes
1answer
42 views
How to support special characters in text field?
When i put special characters in text field on wordpress themes option then it's gonna add some slash characters Like if I put
It's
then its show
It\'s.
How i solve that?
0
votes
0answers
80 views
How to use Redux Framework checkbox option and Checkbox to hide below?
Can anyone tell me How to use Redux Framework checkbox option and checkbox to hide below option on my themes?
If I try …
if ( isset($options['opt_ID'] ) ) {
<?php echo $options['opt_ID']; ?>
}
...
0
votes
2answers
61 views
Cannot modify headers
I absolutely hate this error. And do not understand it at all.
So this is my code, what you want to focus on is the foreach loop:
public function reset_theme_options(){
...
0
votes
1answer
136 views
Is it good idea to combine Options FrameWork with Hybrid Core Framework
(This is my first time posting here, so would appreciate if anyone could let me know the best way to post questions).
Until now, I had been using TwentyEleven Theme and adding "Options Framework - ...
2
votes
1answer
80 views
Adding a description to theme customizer controls
How could I add a description to $wp_customize->add_control? I've found I really need to include a short description on some of the controls but it doesn't look like it's possible.
I noticed you ...
10
votes
3answers
305 views
Wordpress API Menu/Submenu Order
I'm developing a child-theme using Wordpress 3.4.2 and the development version of the Options Framework by David Price. This is my first theme and I'm relatively new to this, so I've had a look into ...
0
votes
1answer
64 views
Notice: Undefined index: in options-framework.php
I am generating the following notice in the options-framework.php.
Notice: Undefined index: in options-framework.php
I believe it is something to do with sanitization, but do not know how to resolve ...
0
votes
1answer
52 views
Notice: Trying to get property of non-object in options.php
I am generating the following notice in my options.php when testing my theme in wp_debug mode.
I can see where the problem is but do not know how to fix this issue?
It seems the non object is being ...
0
votes
1answer
112 views
Create /archive page in Wordpress Theme
I'm trying to create a Wordpress theme, and I'm having a little difficulty with creating an easily accessible archives page.
First off, I'm not referring just to the standard archive.php in the ...
-1
votes
1answer
78 views
Error: options page not found
This error is really well known and every where I look its either I am not doing:
<form method="post" action="options.php">
or I am not registering my options, which is not the case as seen ...
0
votes
1answer
67 views
Cannot query custom post type taxonomy from theme options array
I am having no luck with querying a custom post type taxonomy from an array in theme options.
My full code is below, would be grateful for some feedback to get it working correctly as I cannot get ...
0
votes
1answer
105 views
Problem with query_posts for a custom taxonomy in theme options
I am having some issues with querying the output of custom taxonomies in my theme options.
I have included what I think are the necessaries below.
Many thanks for your help in advance.
// Pull all ...
0
votes
1answer
54 views
How do I display a full post, not just an excerpt?
I am a newbie, so apologies in advance if my terminology is off. I have purchased a theme (WP SmartStart) and I would like the posts in the blog to display fully, not just as excerpts. I read previous ...
0
votes
2answers
47 views
Custom post types problem
I have in my blog around 2k+ posts in 15 categories and around 1k tags. The problem now is that the website I bought the theme from decided to upgrade/update their themes infrastructure and now I need ...
