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

Theme Options wp_editor breaks with 6.0.2 update

I'm in the process of migrating my sites to a new server (windows -> nginx). One of my old themes has 4 options pages. One of the options pages includes 3 wp_editor instances. However, all 4 ...
1 vote
1 answer
40 views

Theme.json: creating different sections of the color palette

I've got some colors defined in theme.json- is there a way to define custom sections within the color palette? When I set my own colors, they show up in the section labeled "Theme". The ...
  • 571
0 votes
0 answers
24 views

Related Post Category Filter

How can I set a category filter for the related posts display so that a certain category is not displayed? here is an example link: https://bit.ly/3zNSoso the category with the id 390 should be hidden
0 votes
0 answers
63 views

WordPress custom menu can't show 3. level submenu

I Use a custom walker from my menu in WordPress and my menu doesn't show all levels. https://soulofcroatia.com/ ->One Day menu item. This is my code in header.php <?php ...
0 votes
0 answers
26 views

It is possible to pass $args that sent by add_settings_field() inside another function?

I'm trying To do my plugin Setting with OOP PHP when I'm Creating Setting Filed it sends $args so I can use it in their function, but when I call this function in another place it is for $args and it'...
0 votes
1 answer
32 views

Dynamically switch file in get_template_directory_uri() | Function [closed]

I need to switch scheme color of my WordPress theme trough Redux option panel. My plan is switch the CSS file trough get_template_directory_uri() | Function. The scenario is: Create 2 scheme color: ...
0 votes
0 answers
13 views

Gallery functionality in custom theme

I'm new to creating my own theme and I barely scratched the surface of this topic so far. But my end goal would be to create a "gallery like" functionality. Maybe there are some functions or ...
  • 101
0 votes
1 answer
19 views

Count when a post of a custom post type is deleted and store it in a theme option

I work on a website that shows products in a catalogue without checkout. Those products can be bougth stationary, and then the product will be deleted from a custom post type. So, I basically want to ...
0 votes
0 answers
28 views

Illegal string offset in PHP function in via Theme Customizer

I have this setting in wp_customize: // Select share box options. $wp_customize->add_setting( 'single_share_box_options', array( 'default' => $this->defaults['...
  • 454
0 votes
1 answer
23 views

display category name based on its equivalent id

I have a theme with options. I would like to display 3 posts for a specific woocommerce category, I could show category id and I don't know how to display products based on its category id, but I have ...
0 votes
0 answers
28 views

Defining path of content folder in WP-config solves the issue of missing header, footer, theme options. Is this a good approach? Expert Advice needed

The header, footer, theme options went missing on the website. I am using the latest Bitnami WordPress Stack on Amazon Lightsail, Approach A: Bitnami installations using system packages. When I ...
0 votes
0 answers
51 views

Javascript File Does Not Work

I created a page independent from the theme and added the php and js files of the pageto the theme folder, the php file works but the js file does not. Why could it be? PHP File: <?php if (!...
0 votes
0 answers
43 views

How do I have my widgets in a Sidebar for my http://localhost/wordpress/

I have installed wordpress version 5.7.1 with MAMP 6.3 on my MacOS laptop. However on localhost/wordpress, I do not like the way the Twenty Twenty-one theme is set out because under appearance, I had ...
1 vote
1 answer
252 views

Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]

I would like to Create A Wordpress header with {the_custom_logo();} custom logo in between the menu splitting the menu into two equal parts so that the logo is always aligned to the center of the ...
0 votes
1 answer
76 views

In wordpress customizer div still showing even if I hid it with javascript

I am loading a div in my single.php based on a setting in the customizer. It all works fine in the front-end as expected. But in the customizer that div is still showing even if the setting is ...
0 votes
0 answers
204 views

Adding link options in insert/edit link dialog window

Good afternoon! I am looking for a way to insert a text box inside this insert/edit link dialog window. Due to googles recent changes for rel/nofollow links, we would like to insert an option to add a ...
0 votes
1 answer
677 views

Elementor: How to override global theme style settings? [closed]

When I set the global settings for a link, I'm not able to overwrite Titles with a link. Here is an example: <h3 class="elementor-heading-title elementor-size-default"> <a href=&...
0 votes
1 answer
19 views

Switching among theme customizations

I am developing a website that should switch between two looks (depending on the season) using different customizations of one WordPress theme. I mean all the changes are done on the wp-admin/...
  • 105
0 votes
1 answer
23 views

Is there a way to get plugins and themes not built for multisite to work on a network subsite?

Certain plugins and themes are yet to be multisite-compatible and i need to add important functions to some subsites. So i was wondering if there is way to enable such plugins to work on those ...
  • 1
1 vote
0 answers
42 views

Link theme options page using ACF to styles

Forgive me, I'm very much a beginner. I'm looking into custom theme development and creating a theme options page. Using the options page, I want to set a primary color that will be used across all ...
0 votes
0 answers
58 views

Want to know how to reveal a WordPress theme, considering the theme name is hidden?

Please can anyone advise, I want to know what If a WordPress theme is hidden from the directory folder? And a result no online extension will able to track the original theme name used to create the ...
0 votes
1 answer
1k views

on change form submit variable value not updating

I try to make custom theme option, a switch select option can change $bannerchange value. but i cannot add/update value of $bannerchange, select option inside a form. working fine with submit button ...
0 votes
1 answer
7 views

Theme options period being replaced

I have a theme option that I use for opacity. On the screen, I put 0.67 as the value. But if I publish and refresh to look at the value it's coming up as 0-67. Here is my code: $wp_customize->...
  • 111
0 votes
1 answer
43 views

What is the "pub" theme? [closed]

I've been trying to mimic the kinds of websites/blogs that mathematicians have with WordPress and typically their theme is "pub"--it shows up in their style.css, "https://s0.wp.com/wp-...
  • 1
0 votes
0 answers
218 views

Customizer API Multi Sections in single Panel

I'm trying to build up a multi sections Customizer in wordpress and when i add the third section in a single panel the first section is set to display: none don't know what seems to be the issue. If ...
0 votes
1 answer
43 views

Shorter admin url for options page

Is it possible to create a short admin url for options page? The default admin url is: domain.com/wp-admin/admin.php?page=options-page-slug And i want it to be: domain/wp-admin/options-page-slug
0 votes
2 answers
840 views

How to save custom settings api fields with custom section fuction

I am creating wordpress theme on a single options page. I have customized the default do_settings_fields and do_settings_sections functions. my fields are displaying fine but when i am trying to save ...
1 vote
3 answers
68 views

WP Post-Thumbnail

I've already saw the question some times here, but sadly nothing helped me out yet. Right now I've got following code: <h2 class="title_bar">Videos</h2> <ul class="vlist&...
  • 11
0 votes
1 answer
39 views

Copying the theme style files and images to duplicate the website but with a difference

I have recently downloaded a nulled premium wordpress theme online and have been doing changes to see if I can build the website I want to with the theme. Now that I am satisfied with my result, I ...
  • 1
0 votes
1 answer
15 views

How to find where an object first instantiatiation

Problem is solved. I have built a theme options class so i can build as many option pages as i want, an i implement a singleton design pattern to fetch options only once, and i have WPML plugin ...
0 votes
2 answers
99 views

Why theme settings lost when I installed https

I installed https on a website. I did these steps : locate the certificate SSL Added redirections in .htaccess Changed in database all http://mon-site.fr into https://mon-site.fr I don´t understand ...
  • 770
0 votes
1 answer
41 views

only last option from theme options is being saved to the DB

I have this admin page functions where I am trying to prompt the admin for some text data. the problem that is only the last field is being saved and existed ain the DB, the top ones do not exist in ...
  • 121
0 votes
0 answers
40 views

Theme does not allow shortcodes

I'am createing my own theme. I want to use shortcodes but they're not working. If I enter them in a post I juste get the shortcode name whit brackets. To display the code I use this function: ...
0 votes
1 answer
148 views

Check if( selected() )

I have been working on adding options to a theme I am making. I have run into trouble having multiple options in a select box. I am looking to echo a code, depending on what value is saved in the ...
  • 246
1 vote
1 answer
173 views

There is any way to remove post-format filter? [closed]

I have tried to remove_theme_support( 'post-formats') set higher priority but it is not working
1 vote
0 answers
80 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 ...
  • 41
0 votes
1 answer
187 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 ...
  • 181
0 votes
1 answer
714 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
1 answer
50 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
1 answer
966 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
0 answers
137 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
2 answers
270 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://...
  • 101
0 votes
1 answer
720 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
1 answer
58 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 ...
  • 1
3 votes
2 answers
322 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 ...
  • 131
0 votes
1 answer
265 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 ...
  • 27
0 votes
0 answers
115 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
1 answer
19 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
0 answers
36 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 ...
  • 753
0 votes
1 answer
137 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.

1
2 3 4 5
10