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.

Filter by
Sorted by
Tagged with
0
votes
0answers
56 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
2answers
673 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
942 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
2k 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
24 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
24 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
22 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
33 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
28 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
118 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
71 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
34 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
3answers
208 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
49 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
40 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
122 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
41 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
45 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
2k 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
2k 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
438 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
112 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
514 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
336 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
52 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
30 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
327 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
48 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 ...
0
votes
3answers
229 views

How can I style my theme admin page?

I made a large-scale research. But there are no anything what I want. I want to style my options page in a static style file. How can I do that? Sources /* *Create A Simple Theme Options Panel *Exit ...
0
votes
1answer
1k views

Theme option page doesn't save options

I am trying to practice adding theme options page using settings API but unfortunately the code i have written according to the codex doesn't work properly. When i tested the code no errors generated ...
1
vote
1answer
143 views

Insert content between sections in WP customizer

Is it possible to insert some HTML content between sections in WP Customizer? E.g.it can be used for further sectioning
0
votes
1answer
499 views

use get_theme_mod from all sites in network

I'm creating a site that shows all sites in the network. Each site in the network has a theme customizer where a user enters text. I was able to get the name and url of the site but need to find a way ...
0
votes
2answers
3k views

how to create a section inside a section with theme options customizer

it is very difficult to find an online article, or even in the WP codex, to create a section inside a section for the theme options. the below screenshot shows what i am trying to create: i have the ...
5
votes
1answer
7k views

Add a dropdown to theme customizer

How can I add a Drop down control to WordPress Theme Customizer and use its value in Theme source? I want to use Drop down value for changing some CSS file names Thank you very much
1
vote
1answer
128 views

Access theme options in templates

I'm new to WordPress development... So i need to echo $theme_opts['content_width'] in page.php, index.php, sigle.php, etc... In header.php works fine. <?php echo $theme_opts['content_width']; ?&...
1
vote
1answer
80 views

Can i use the same sanitize function on multiple theme mod textboxes?

I have a theme mod with multiple options and currently adding sanitizing options to those choices. This is my code I'm using: $wp_customize->add_section( 'twsa_feed' , array( 'title' => ...
1
vote
1answer
36 views

How to show custom meta_key in each li of menu

I created a field in category section which is category color. Codes are in different lines in file so I will paste them separately $kategoriler_self = get_categories(array( 'hide_empty' => false )...
0
votes
4answers
90 views

Wordpress Drop down category as array for using in page builder

I need wordpress category as drop down . So far my code function cat_drop_down(){ $categories_array = array(); $categories = get_categories(); foreach( $categories as $category ){ $...
0
votes
1answer
47 views

How do I merge 2 WordPress Themes?

I am new to WordPress...well using it actively. I only use it when I travel. I have a Retired Theme that is really difficult to navigate and want to change the theme but merge all my old Blogs and ...
0
votes
1answer
588 views

How to set a default theme option after installing theme?

I'm using a class to add a theme option page to my theme. I need to set some default values upon theme activation or installation, since some of these values are strings, and if i try to get the ...
0
votes
2answers
39 views

How to customize the colors within a stylesheet using a WordPress setting

So, we are building an internal WordPress theme for our company that will be used for a few dozen of our websites. The only thing that will differ between the sites is the color scheme. We're trying ...
0
votes
1answer
38 views

why need theme,if page builder is there in wordpress [closed]

I am new into the arena of wordpress.I started learning about how to create website using wordpress.I am wondering if a page layout can be fully designed and customized by using a page builder plugin,...
1
vote
0answers
113 views

Wordpress admin panel framework weird layout on server side

I've called theme option panel via functions.php, its layout appears well on localhost, but when I upload it to my hosting account via FTP panel columns floating itsel to the left. I think this is ...
1
vote
0answers
482 views

get option framework options returns Call to undefined function of_get_option()

I have this kind of twitter feeds fetcher and as the twitter API requires consumer key, consumer secret, access token, access secret so I created those fields using option framework in my theme and ...
1
vote
1answer
5k views

Set the checkbox as checked by default at options page

I'm making a theme settings page, so when I start coding the checkbox options, it works fine if the default value is unchecked. Here is the code: function classy_show_resume_section_callback () { ...
1
vote
1answer
738 views

Why does the 'wp_nav_menu' function work only until a menu is created?

I'm trying to create a theme for wordpress so I've done a clean install. I have not created entries, pages or menus. At this point I am in the part of creating the menu so I created in my functions....
3
votes
2answers
1k views

WordPress Customizer Typography: How to load just the unique Google Fonts?

I have 10 big dropdown select combo boxes of hundreds of font-faces, including System Fonts and Google Fonts. All combo boxes carry the same values. There are two more combo boxes for each of the ...
1
vote
1answer
50 views

Customizer - Prefix Class Extension

I have a basic question to beautiful working code I've found (paulund) for making a Custom Control by extending the 'WP_Customize_Control' Class. I am new to PHP, Programming and especially to OOP. So ...
0
votes
1answer
69 views

WP Customazation API doesn't save the default Value

Heyo, I have a problem with the Customazation API of my own Theme. I want to make a specific Text in my theme ediable. My functions.php looks like so: /** ++++++++++++ Editable Text ++++++++++++...
0
votes
1answer
82 views

Theme options on CPT

My theme comes with a section (called Page Header Options) that allows you to customize pages & posts, as below. I've installed a plugin to create some events & I'd like to have the Page ...

1
2
3 4 5
10