Stack Exchange Network

Stack Exchange network consists of 174 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
7 views

Why in Word press theme Blog post content not displaying in seperate blog page

I am using wordpress theme markesia on my website. But Blog post content not displaying in a separate blog page. I have already set to static page home-> home and blog page-> blog. None of these are ...
0
votes
1answer
10 views

How to resize Youtube Video embedded size on mobile

How do I resize a youtube embedded video player on mobile? It looks too small compared to other images. I've attached a screenshot on mobile. https://i.stack.imgur.com/5h5Wf.png
0
votes
0answers
4 views

How can I run a Javascript code after 5min of loading the web? [migrated]

I have a piece of code in Javascript, I would like to be able to run it after 5min that my web has fully loaded. It's possible? How could I do it?
0
votes
0answers
30 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
8 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
17 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
8 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
55 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
11 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
16 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
18 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
71 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
89 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
31 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
10 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
21 views

How to add image preview in theme options

I added image upload option in theme options now I want to add the bottom of this image preview.can anyone suggest me? var custom_uploader; $('#upload_image_button').click(function(e) { e....
0
votes
0answers
36 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
0answers
17 views

Default menu items for custom theme but easily delete-able / customize-able by user

So, using a bootstrap template like this: https://blackrockdigital.github.io/startbootstrap-creative/ Using its menu, i want to be able to keep that bootstrap menu items as default as part of the ...
0
votes
0answers
124 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
170 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
82 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
21 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
17 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
29 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
18 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
0answers
30 views

Adding Multi None Grouped Check boxes Into Section of Option Page

Using WordPress Settings API and following code I need to Add several Check-boxes (Not Grouped Checkbox) to an Option page. As you can see the add_settings_field(() is adding only one input checkbox ...
0
votes
0answers
27 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
27 views

Theme options - Customization Api - is it possible to make it mulitlang?

I'm developing theme and it needs to support at least two languages. Right now I'm using for some front page customization: Theme Customization API. And it is nice but I couldn't find a way to make it ...
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
680 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
93 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! ...
0
votes
1answer
49 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
25 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
33 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
641 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
766 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
210 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
98 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
230 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
55 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
219 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",...
0
votes
3answers
46 views

I updated my own theme's code and css

I have mt theme folder in my computer, where I did all the updates. Now I want to upload the new version of my theme with the changes I did. My question here: Do I just upload the theme folder via FTP ...