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
10 views

Add Plugin options as subpage to Theme options page

I have my own Theme with an options page. Now I am developing a new Plugin which should have an options page that should be a subpage of the Theme options page. Theme options.php: <?php function ...
0
votes
1answer
12 views

Parent page shows no child content

I just installed a fresh copy of Wordpress and tried to create one parent page, but the page shows no content, regardless of which Official WP theme I use or if I use this new parent page as the ...
0
votes
1answer
24 views

How to Create custom xml file for demo content for custom theme?

I am created custom Wordpress theme. Now i need to create functionality for demo content import such as Pages, Posts, Widgets, media and menu. My question for demo content is possible for above ...
0
votes
1answer
30 views

Show some menu sub items as dropdown under a menu item

I have made a custom wordpress menu - function my_custom_menu_item($items, $args) { if(is_user_logged_in() && $args->theme_location == 'primary') { $user=...
0
votes
0answers
13 views

How to make theme options multilingual

Themes always have options to be outputed on the fronend, but for a multilingual site, this is a problem, because you have only one version of the option, somthing like copyright option you need to ...
0
votes
0answers
45 views

Change CSS Variable value in Theme Customizer Live Preview

I am trying to change a CSS Variable value in customizer and couldn't get live preview working using 'postMessage'. It works if I use 'refresh' option. Can someone please have a look at the code and ...
0
votes
0answers
26 views

What is an alternative to not using child theme to customize a WordPress theme?

I'm using a premium parent theme and I've been trying to create a child theme from it and found that some "templates" are not just as simple as overidding them. Read this So, that is the other best ...
0
votes
0answers
10 views

Controlling site wide modules from one place in the backend

I'm building pages using the WPBakery plugin. I've created custom elements for all of the building blocks, but there are two elements which appear across all pages, those being: Get in touch banner ...
0
votes
2answers
51 views

Issue with theme mod options during domain migration

I want to migrate my development wordpress site to the production domain. In order to success the migration I found and replace all previous url occurences (http://localhost) to the new (https://...
0
votes
1answer
31 views

How do I use add_control to offer a list of all pages in the customiser?

What I am trying to do is offer three pages to highlight on the front page. To do this, I would like to offer users a dropdown list of all pages. I have not worked out how to do this. I know how to ...
0
votes
1answer
37 views

Import/Export WordPress demo

We are a team of developers who are beginning to publish our theme on Themeforest. We are facing an issue in presenting the demo of our theme and wanted to seek your help. Whenever we try to export ...
3
votes
2answers
77 views

How to deploy a new theme/theme options from staging to production site

Let's say you are building a new theme on a staging site. While you were building, the production database has changed due to new user registrations/orders. So now the question becomes how do you ...
0
votes
1answer
72 views

Shortcode don't work in custom option field, any solution?

I have a custom field in the theme Customizer that allow to define own copyright information. I created a shortcode displaying the current year. How to make the shortcode work when someone has pasted ...
0
votes
0answers
38 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 ...
0
votes
0answers
131 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
35 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
14 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
56 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
17 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
6 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
12 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
1answer
12 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
655 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
1answer
102 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
27 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
311 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 ...
2
votes
1answer
38 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
46 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
292 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
457 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
439 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
21 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
25 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
58 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
36 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
32 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
137 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
27 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
35 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
67 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
31 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
36 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
969 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
1k 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
338 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
103 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']) &&...