Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 answers
19 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 ...
user avatar
0 votes
0 answers
24 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'...
user avatar
0 votes
1 answer
24 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: ...
user avatar
0 votes
0 answers
10 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 ...
user avatar
  • 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 ...
user avatar
0 votes
0 answers
25 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['...
user avatar
  • 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 ...
user avatar
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 ...
user avatar
0 votes
0 answers
50 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 (!...
user avatar
0 votes
0 answers
41 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 ...
user avatar
1 vote
1 answer
109 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 ...
user avatar
0 votes
0 answers
19 views

Start Getting Error without any change

I am working in a theme and everything was working fine, and Suddenly below error start appearning I undo work to every stage of production where it working but these error aren't going: [24-Aug-2021 ...
user avatar
0 votes
1 answer
70 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 ...
user avatar
0 votes
0 answers
24 views

Customizer API postMessage not working when previously unchecked

I'm showing author info in single.php with <?php if ( get_theme_mod( '_themename_display_author_info', true) ) : get_template_part( '/template-parts/single/post-navigation' ); endif;?> I'm ...
user avatar
0 votes
0 answers
16 views

Changing video image links

I am new to WordPress sites, and my website has a theme on the home page. It includes a video image link. I want to change this to just a standard image, which when clicks takes the user to a ...
user avatar
  • 1
0 votes
0 answers
139 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 ...
user avatar
0 votes
1 answer
477 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=&...
user avatar
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/...
user avatar
  • 105
0 votes
1 answer
22 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 ...
user avatar
  • 1
1 vote
0 answers
40 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 ...
user avatar
0 votes
0 answers
48 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 ...
user avatar
0 votes
1 answer
916 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 ...
user avatar
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->...
user avatar
  • 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-...
user avatar
  • 1
0 votes
0 answers
167 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 ...
user avatar
0 votes
1 answer
42 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
user avatar
0 votes
2 answers
612 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 ...
user avatar
1 vote
3 answers
57 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&...
user avatar
  • 11
0 votes
1 answer
27 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 ...
user avatar
  • 1
0 votes
1 answer
13 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 ...
user avatar
0 votes
2 answers
95 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 ...
user avatar
  • 770
0 votes
1 answer
37 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 ...
user avatar
  • 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: ...
user avatar
0 votes
1 answer
104 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 ...
user avatar
  • 246
1 vote
1 answer
160 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
user avatar
1 vote
0 answers
62 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 ...
user avatar
  • 41
0 votes
1 answer
168 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 ...
user avatar
  • 181
0 votes
1 answer
663 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 ...
user avatar
0 votes
1 answer
49 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=...
user avatar
0 votes
1 answer
912 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 ...
user avatar
0 votes
0 answers
125 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 ...
user avatar
0 votes
2 answers
250 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://...
user avatar
  • 101
0 votes
1 answer
599 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 ...
user avatar
0 votes
1 answer
54 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 ...
user avatar
  • 1
3 votes
2 answers
313 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 ...
user avatar
  • 131
0 votes
1 answer
237 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 ...
user avatar
  • 27
0 votes
0 answers
100 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('...
user avatar
0 votes
1 answer
18 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>. ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
  • 743
0 votes
1 answer
96 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.
user avatar

1
2 3 4 5
10