0
votes
1answer
13 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
0answers
27 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
52 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 ...
0
votes
0answers
113 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
32 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
383 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
3answers
119 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
0answers
31 views

Minify style.php in head of index.php

I currently have a WordPress theme options page. I read all the theme options styles in style.php which I then include in the head of my website. Does anyone know how to minify this style.php file? ...
0
votes
0answers
37 views

Options not saving

My options were saving properly then I edited the files and it's not saving anymore. I undo the changes on the files and I'm sure that those were the only files that I edited. One section saved ...
0
votes
0answers
23 views

How to have multiple sections within the same theme options page

For my theme, I have created a Settings Page which is shown in the Appearance menu of Wordpress admin. Now, I have been following this tutorial. Exactly like the tutorial, I have created multiple ...
0
votes
1answer
25 views

Can I have two different theme for two different language?

I have to develop a multilanguage website using WordPress (Italian and English) and I want to know if I can have a theme for the Italian version and a differen theme for the English version. Can I do ...
0
votes
1answer
58 views

How to enqueue javascript for WP Customize options sidebar?

I'm trying to add Chosen.jquery to the WP Customize options panel, so I can have an autocomplete box there. Is there any way I can do that? I tried with admin_init, admin_footer and ...
0
votes
0answers
70 views

How To Display Value from Theme Options Field in Front End Template?

I put this code into my functions.php https://gist.github.com/corvannoorloos/4703066 and it work nice. Now I want to display value from Sample Select Options filed in some front-end templates. How ...
2
votes
0answers
104 views

Best practice (forward compatibility) for theme options

So here is what I'm wondering... You all know about Option-tree and similar frameworks that theme authors are using for their theme option pages. You also all know that since 3.4 WordPress introduced ...
-3
votes
1answer
346 views

Wordpress Errors in generated by theme check plugin [closed]

Please help me in solving these warnings, in order to submit the theme for submission. Thanks in Advance. I have found many warnings and have solved many of them thanks to wordpress.stackexchange.com ...
1
vote
2answers
920 views

How to access options of Redux framework in front end

I'm creating a wordpress theme in which I'm using the Redux Framework for creating the theme's options page. Now I believe everything is well set up but I'm having trouble in getting the values ...
0
votes
1answer
29 views

Update Specific Key Value in Complex `wp_options` object

This should b really easy but I can't find reference - easy points for someone! I have an option in my wp_options table, and need to set it via update_option(). I just can't find the correct syntax ...
0
votes
0answers
17 views

Is it possible to have controls side by side on the Theme Customizer?

The theme customizer presents all the controls one after other in a vertical order. Is it possible to have them side by side? From: -------------------- | control 1 | -------------------- ...
1
vote
1answer
86 views

Using an if statement in the theme customizer page

I am slowly but surely chipping away at my first wordpress theme. I tried to make all of the aesthetics have different options, but well categorized so it is not overwhelming. So in my theme ...
0
votes
0answers
44 views

trying to figure out how to use more that one image upload in the same section in theme customizer

i am trying to figure out how to use more that one image upload in the same section in theme customizer. the function is new WP_Customize_Image_Control. when you try to get the path of the image you ...
0
votes
1answer
122 views

get_template_part() doesn't work

I use get_template_part() function to get theme options page content like this: function setup_theme_admin_menus() { add_theme_page( "Theme Options", "Theme Options", "read", "theme_options", ...
0
votes
0answers
80 views

Theme Options Doesn't Work On WP Multisite

I'm developing Wordpress themes and I'm having an issue with Theme Options on Wordpress Multisite (WPMS). My theme works like a charm on classic Wordpress (WP) installation but when I try to use it ...
0
votes
1answer
3k views

How to add “Template” option in page attributes panel?

I am new in WordPress. In my theme, I do not have "Template" option in 'Page Attributes panel'. I want to add this option. I tried to solve this problem from the following post. But It did not work ...
0
votes
1answer
601 views

WordPress two sidebar layout or theme

I am new in WordPress. I was working with Drupal for some days, before. Now, I am interested on WordPress. So, I am trying to learn it. My problem is, in WordPress I did not find any two sidebar ...
0
votes
1answer
57 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
3k 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. ...
3
votes
1answer
603 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
1answer
64 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
27 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 ...
1
vote
1answer
33 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
2answers
348 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
357 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 ...
5
votes
1answer
900 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 ...
1
vote
1answer
87 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 ...
2
votes
1answer
313 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
119 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
63 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
2answers
196 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
414 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
1answer
85 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; ...
1
vote
1answer
104 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
477 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
61 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
1answer
102 views

The content not wrapped in paragraph tags with get_page_by_title()

I am using $page = get_page_by_title('name'); to get the contents of a page. When I echo $page->post_content; none of the content is wrapped in p tags like it is when run threw the normal ...
1
vote
1answer
190 views

Location of theme options page menu icon

Hi this may look a little silly question but can someone let me know where is the location for theme_path? is it inside my own theme or very top level of the directory? 'menu_icon' => theme_path ...
0
votes
1answer
39 views

Apply custom names for generic custom taxonomy name?

Hello, this is more of a 'is it possible' type question. Keep in mind, I am no php master by any means, but can generally figure things out : ) Say i have a wordpress site that is for displaying menu ...
6
votes
2answers
2k views

What are the advantages and disadvantages of Option Tree over the Customization API?

I'm relatively new to WordPress theme development, and I had to create a theme with options available. I did a Google search to see what are the possibilities, and I read articles about such, and read ...
1
vote
2answers
134 views

WordPress settings API error when checkbox unchecked

I am trying to creating some custom options for a template I am developing but I am getting an error when the checkbox (Line 130) is unchecked: Warning: Illegal string offset 'show_admin_dev' in ...
-1
votes
2answers
275 views

How to make admin theme option with image slide show?

How to make admin theme option with image slide show so admin can change image dynamicly (user can upload and change the image and title slider) as a slideshow on the webpage? Thank you for any ...
0
votes
2answers
100 views

How do I use a color from theme options?

I am building a theme, and in the options I have created a place for link color. I cant seem to get this into the theme in any reasonable way. The best I can do is to put it after wp_head ... but that ...