Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [theme-options]

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 builds it. The Theme Options page for WordPress Twenty Twelve theme, for example, provides options to change the Color Scheme, Link Color, or Default Layout.

0
votes
0answers
24 views

Cannot save with wp_dropdown_pages() in page options

I don't understand why, the custom select option works, but even when wp_dropdown_pages() is outputting the same exact HTML, it doesn't save as the select option does! I'm out of ideas :( Here's my ...
-1
votes
0answers
37 views

How can I add theme quick setup wizard in my custom theme development?

I need to use theme quick setup wizard in my theme. Because, when any one activate my theme first time I want to install some required plugging, add some own configuration, also user can import demo ...
0
votes
0answers
67 views

Programmatically Update ACF Options Page

Consider the following ACF Options Page: if( function_exists('acf_add_options_page') ) { $option_page = acf_add_options_page(array( 'page_title' => 'Theme General Settings', ...
0
votes
0answers
25 views

Role and Capabilities: How do I allow user role to access theme options without enabling 'manage_options'?

I'd like to allow a certain user role to access the theme options only. When I tried this in functions.php, nothing happened: $limitedadmin = get_role('limitedadmin'); $limitedadmin->add_cap('...
0
votes
0answers
13 views

I can't see any options when I click on add theme and when I edit on Home Page using Elementor I get error

I have 2 errors on my wordpress websites:- 1) When I click on add theme, I cant see any option just blank screen like this. 2) When I edit Home Page using Elementor, I get the following error, Can ...
0
votes
0answers
24 views

Redux Framework won't load options in front after activate plugin

I have my theme made with Redux Framework, problem is after i enabled plugin redux, i can see my theme options in top bar, but in site in front are not loaded, to have my front view ok, i need to go ...
0
votes
0answers
16 views

Customizer control for including files in functions.php

I have the following include in my theme's functions.php file to add social sharing icons to my theme: require get_template_directory() . '/inc/social-sharing/social-sharing.php'; I would like the ...
0
votes
1answer
5 views

Metallex Theme modifies links after saving them

The Problem The theme I'm using allows one, in its options, to enter some contact info to be put in the header. The demo content has an empty link like this: <a href="#">Random Shit</a>. ...
0
votes
0answers
32 views

In 2016 Theme where is the Posts page thumbnail image stored?

We built our new site at a staging URL. We then moved it to the live site and everything works fine -except- for the 'Posts' page. On that page, the image specified as the thumbnail continues to ...
0
votes
1answer
10 views

Appearance -> Menus doesn't show

Ony of my colleges started with the implementation of a new theme, I'm trying to add Menus but the option doesn't show. anyone know how to bring that back? thx.
0
votes
0answers
17 views

How to select a particular post layout across theme?

I have multiple layouts which are being used in the theme. Now, I require different excerpt length for every layout. I tried using the excerpt_length filter in functions.php but it affects the excerpt ...
0
votes
0answers
19 views

How to store colorpicker hex color using options API?

I wrote the following code, which works fine in displaying a hex value if its not set, or if its set already. I want to save the selection of the colorpicker, using the save button, but something is ...
0
votes
1answer
9 views

Swap themes locally

I have a problem where my 'add new plugin' button doesn't work and it also doesn't appear on the normal menu. I searched online and the solution that is being suggested is swap theme to check if the ...
0
votes
1answer
154 views

How to find php variable of wordpress theme settings

I'm new to PHP and WordPress, but I have some experience with python, for my site I use the traveller theme. How can I find the exchange rate variable that exists in theme settings (the red square on ...
0
votes
0answers
13 views

Wordpress Option is cleared when updating from Admin Page

I am building a custom admin panel theme options page. So far parts of it are working. I used the codes below to register and build the admin panel form. Similar code is used for 4 different tabs. 2 ...
0
votes
1answer
35 views

using themename_the_custom_logo() in template-tags?

I am trying to learn how to create a theme for wordpress so i looked at the default theme 'twenty sixteen'. I was crawling around it and searching everything that i find strange then i saw this code ...
0
votes
1answer
21 views

Media is not showing on post page

I'm building a wordpress website based on the theme "Bulk Shop". Most of the content will be added as "post" and will be categorized into "next show", "last show", "music", "videos", etc. https://...
0
votes
1answer
138 views

Undefined index for default custom theme option

I have a custom theme option that allows the changing of logos. There are 3 logo options: option1, option2, and option3. Upon theme activation, the default "option1" logo appears, but above it I get ...
0
votes
0answers
186 views

options.php not found when saving Theme Settings

I am building a custom theme from the Underscores starter theme (https://underscores.me/), and am building a theme settings page. When I go to save my fields, I get the "Error: options.php not found" ...
2
votes
1answer
33 views

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 ...
0
votes
0answers
17 views

Add individual features to a theme without using plugins

Already have a good time that I do not have any project related to HTML or web, recently a person from my church asked me to create a website for him, as his goals referred a lot to a blog I chose to ...
0
votes
0answers
11 views

How to add field in theme options to select a page as dropdown?

I want to have a feature in the theme options where i can fix a page template(with in themeoptions) and user will be allowed to choose the page. When it is saved the page template will be changed as ...
0
votes
0answers
39 views

Why Settings API Options Override Customizer Settings?

I Developed My Theme To Provide two Ways of Customization, Settings API & Customization Manager API, After Finishing the Work in the Dashboard , i tried to implement them for the front-end ...
0
votes
1answer
179 views

Show multiple option in URL with 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. I want to show multiple blog layouts without creating custom WP templates. I saw in many ...
0
votes
1answer
288 views

$_Get and &_REQUEST Index Undefined on Functions.php

I recently try to learn create a theme options page for my custom theme, is follow the tutorial from stackoverflow and other resource. but the script show an error if ($_GET['page'] == basename(...
0
votes
1answer
138 views

.PO file is found but I don't see translations: how to debug the problem?

I have installed the Stack theme, and I want to make Danish translations. I have downloaded the Stack.pot file, made the modifications I need, and uploaded them to: /wp-content/themes/stack/languages/...
0
votes
1answer
12 views

What's a good way to default behavior if a plugin is inactive?

I'm currently building a framework that enhances a few things such as: Custom Customizer Controls Custom Single Post Layouts etc. For example, this means that on my single.php I call framework\...
0
votes
1answer
22 views

Alignment Problem [closed]

I have an alignment problem with datetime of the comment "not post". The main problem is that I'm on RTL mode and the theme doesn't fully support such environment. So basically, the datetime of the ...
0
votes
1answer
19 views

Admin options from parent theme do not bind

I'm doing a child theme just to patch a bug in the parent one. It's the first time I do this. I have : style.css <- mandatory file to load the parent style functions.php <-- mandatory file ...
2
votes
0answers
30 views

Is there a reliable way to keep track of how long a WordPress theme has been active?

I want to keep track of how long a specific WordPress theme has been active, not just installed. The end goal being I want to display a notice after a user has created x number of posts and the theme ...
0
votes
1answer
20 views

not getting API setting saved confirmation message after update on option page

I am able to add option page to dashboard Menu and so far it works properly (at least to me) But I am not getting API Setting Saved Message after updating the page add_action( 'admin_menu', '...
0
votes
1answer
35 views

admin menu: use default “general” page for theme settings using add_menu_page and add_submenu_page

How can I make my theme settings admin menu showing "general" as default page while keeping its menu title as "theme settings"? I mean at the moment I got this using add_menu_page and ...
0
votes
1answer
35 views

How Can I Update wp_enqueue_scripts () From WordPress Option Page Radio Buttons

Can you please take a look at this script and let me know how can I update the wp_enqueue_scripts () in theme functions.php based on radio select in custom option page? what I have in function.php is ...
0
votes
0answers
29 views

Manipulating customizer panels and fields?

I’m trying to extend WordPress customizer to include search. For this I need to manipulate panels & fields, e.g. select them, clone, add to array, etc. The issue is that regular events do not ...
0
votes
1answer
748 views

How to make Color Picker update element color from custom theme options

I created the plugin below to add custom theme settings to my theme but I am not sure how to update the element colors by using the color-picker. I would like to be able to change the background color ...
0
votes
3answers
117 views

Do not want to display random category. Want to exclude a few or make post show only the category I want [closed]

I'm stuck in a strange situation right now. So I have my wordpress posts which belong to multiple categories. e.g one of my post belongs to two categories. One is 'News' category, and the other one is ...
0
votes
1answer
25 views

How can I stop the hook from breaking the login/logout function?

I added this code to my functions file so there are different theme options depending on whether or not a plugin is activated. function theme_options_select() { if( is_plugin_active( 'gallery-nails/...
0
votes
0answers
34 views

Issues Saving Long String Option

I created a theme option in The Customizer using $wp_customize. Everything works well but it has a problem with saving the long text. If my input value has more than 179 characters, it won't save! ...
1
vote
1answer
54 views

WordPress Theme customisation CSS

I am building a WordPress theme. Which allows user to modify more than a hundred CSS properties. Now I can't decide how to apply the custom CSS. Currently I have some custom CSS inserted into wp-head ...
1
vote
1answer
28 views

Displaying wordpress image size as array used for page builder

I am using this function to return all available image size as array. function king_image_size() { $image_sizes = get_intermediate_image_sizes(); foreach ($image_sizes as $tax) { $...
-1
votes
1answer
35 views

Is it ok if I use this <title> tag?

I'm using <title><?php echo get_bloginfo('title'); ?></title> but it shows the same title in all pages. Is it any way to show the title post, the separator and the blog name in the ...
0
votes
1answer
761 views

Change WordPress header color using customizer

I have theme customize function in my customizer.php file: function mytheme_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';...
0
votes
1answer
949 views

Remove Image Sizes in Media Settings Page

I have removed unnecessary default image sizes in WordPress: function my_remove_default_image_sizes( $sizes ) { unset( $sizes[ 'medium' ] ); unset( $sizes[ 'large' ] ); return $sizes; } ...
0
votes
1answer
261 views

Add section (add_settings_section) to a custom page (add_submenu_page) not working

I am adding a section to sub menu page but nothings is outputting except an empty form with three hidden fields. <?php function testTheme_add_admin_page() { //add admin page add_menu_page(...
0
votes
1answer
99 views

Front end theme options ajax returns 0

Can you anyone help me to get the front_end ajax returns response value as 1.i have updated the below code is now returning response value as 0 if (isset($_POST['frontliveeditor_settings']) &&...
1
vote
1answer
268 views

How can I make my options in an array and store theme in WP options one DB row?

I am making a theme with theme options but for customization, I have completed my theme options more than half. Suddenly I have triggered one problem and that is I have checked my wp_options DB I have ...
1
vote
1answer
64 views

How can I get my options in json response?

I have made a function to download a JSON file with all the options in WordPress and my own options that I have made in my theme options page and it works fine. Here is the code: $options = ...
1
vote
0answers
34 views

Changing layout programmatically

I have a theme that offers 2 choices of layouts within its options, stretched and boxed layout. I wanted to try and make the front page keep the stretched layout look, while the rest of the site ...
0
votes
0answers
27 views

Is it possible to dynamically output the name of the widgets?

I am making a theme so I have also made some custom widgets. I want to know that is it possible to output the widgets names that are built in my theme. Let me know you that I want to display this ...
-1
votes
1answer
242 views

Select area and checkbox data is not saving?

I am making my theme options so I am using the code from the WordPress Codex. I have taken this code below. Creating_Options_Pages $options = array( array("name" => "Header Customization",...