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
1answer
159 views

Give Editor Access to Custom Theme Options

I have a theme-options.php file and am trying to grant Editor users access to edit it. I've managed to give them access to the page itself by modifying the parameters in this function to include ...
0
votes
0answers
16 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 | -------------------- ...
0
votes
0answers
49 views

Set option to show the slider in post - WP

In the WordPress admin/dashboard under "Add New Post", I want to set an option for if someone wants to show posts in a slider: Yes/No. And upon the option I need to do something like this in the ...
0
votes
1answer
44 views

Blogname and Blogdescription in Pagelines DMS Options Panel

I am attempting up set up a front end options panel in the pagelines-dms framework, from which users will be able to change the blogname and blogdescription. So far I have set up the form which has ...
1
vote
1answer
68 views

Getting error to display radio button value in General Settings page

I'm constantly getting the errors bellow when printing the radio button values from General Settings screen: Illegal string offset 'service' in ...
2
votes
1answer
93 views

Site Title and Tagline in Pagelines DMS Options Panel

I'm using the Pagelines DMS Theme and I'm wanting to extend the functionality of the front end admin panel. The user(s) I'm building this for would like to be able to edit a few settings directly from ...
1
vote
1answer
67 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
39 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
0answers
189 views

ACF: What hook can I begin to use get_field()

So I have a nifty trick for my theme "modules" in which case I scan my modules directory (THEME_MODULES_DIR) and create an array of the module directories found. That array is then used to pass as the ...
0
votes
2answers
136 views

Editor role cannot save custom theme options

There's a few questions on this site referencing this issue and I've read them and applied the proposed solutions to no avail. I've made a very simple theme options page that appears for the Editor ...
1
vote
1answer
123 views

Shortcode are not working in Option tree textarea

I am using option tree. In textarea, i place shortcode [layerslider id="1"] its not working, i also found same post replied by plugin author allow shortcodes in textarea in option tree applied ...
1
vote
2answers
72 views

Putting PHP variables into javascript [duplicate]

I've created a simple theme options page for my site. The options page contains three input fields. I can output the the fields by using get_option. The three fields are called using the following: ...
0
votes
1answer
48 views

Cannot retrieve theme options on index.php

I have a theme for which I am able to retrieve The theme options on the header.php file by declaring a global variable and save the options in a variable. <?php global $options_name; $options = ...
0
votes
1answer
23 views

Can Settings API setting generate other settings?

I have a Settings API field for an address. The address is stored this form: "Address, City, Country". Is there any way of creating / generating other options based on the one above? When I save the ...
0
votes
1answer
71 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
73 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
2k 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
431 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
2answers
85 views

Issue on Checkbox with Custom Option Page

I am trying to use a checkbox on Custom Option page by using Setting API. Every thing works fine at back-end and I can update the checkbox states by registering the settings.But when I would like to ...
0
votes
1answer
880 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
86 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
53 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
0answers
27 views

Can customize the logo and background in the same theme

I am trying to figure out how to add a logo in the customizer and add a background in the customizer without adding the images through CSS. Is this possible? I am currently using the twentythirteen ...
0
votes
2answers
2k 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. ...
0
votes
0answers
52 views

Best practice regarding reducing queries, optimize page load-time and reuse common data

I’m currently working on a presentation site for a company. The site itself is not very complex in its code but they have a high demand for being able to customize a lot of things themselves without ...
-1
votes
1answer
214 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. ...
3
votes
1answer
408 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
72 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
0answers
154 views

Sharing Buttons - url doesn't show up in dialog box

I'm currently applying a theme option I made that enables/disables social media share buttons at the end of post's content. Currently I'm struggling with getting the social media button's dialog ...
0
votes
3answers
94 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
61 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
26 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
42 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
0answers
106 views

change plugin path

I'm adding option-tree framework to my workflow as a theme not as a Plugin and I'm having problems trying to change the specific path, because OPTION-TREE only uses the theme root path instead of ...
0
votes
2answers
88 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
0answers
292 views

Option-Tree Framework & Understanding Custom Background and CSS

I'm new in option-tree, in fact I came from a long term realationship with Options-Framework . and I'm use to a different mode of work. I would like to port this functions that I use to use in OF, ...
0
votes
1answer
121 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
31 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
41 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
55 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
42 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
64 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
160 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
159 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
296 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
0answers
70 views

Is it possible to use <optgroup> in <select> in WP Theme Customizer

I use next code to render a select option in theme customizer: $wp_customize->add_setting( 'powered_by', array( 'default' => 'wordpress', ) ); ...
0
votes
1answer
62 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
282 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
151 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 ...
4
votes
1answer
680 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 ...