Skip to main content
Share Your Experience: Take the 2024 Developer 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
14 views

Export Wordpress theme with modifications for other site

I purchased wordpress theme. No i have upoloaded it on new site and modified it as i wanted. Now i want to use that theme in my all sites. Problme is theme also saves its oevrride stuff or ...
kgill's user avatar
  • 1
0 votes
0 answers
5 views

WordPress Customizer - How to save list of checkbox of pages?

I'm trying to create an option within the customizer that is basically a list of pages with checkboxes. I have that part working but I don't understand how to save it AND how to retrieve the saved ...
Jon's user avatar
  • 351
0 votes
0 answers
9 views

Redux Framework Custom Font Wordpress

I have issue with my custom font with my Custom Theme Wordpress using redux framework, when im upload font.ttf and select from media, the file font.ttf not selected . After success uploading on ...
Plat R's user avatar
  • 1
1 vote
0 answers
12 views

Is there a way to enable horizontal margin for a specific block element?

Sorry in advance for my dumb question. I am slowly learning the new WordPress core theme functions for blocks. I admit, I am fairly lost 🤷🏻‍♀️ 😅 . The title says it all, I am trying to add the ...
Xena's user avatar
  • 11
0 votes
0 answers
9 views

How to get rid of a blank space where the featured image used to be?

I want my featured image, or post thumbnail, for the post to be displayed on the "posts" or "home" page (they are the same on my site), but not on the actual post. This is easy ...
Car's user avatar
  • 1
0 votes
1 answer
22 views

Is it possible to tokenize theme options to make them available to the basic site editor

Forgive this if it's a duplicate, as I don't know what I don't know when asking this question. I am not sure I am even using the correct terminology (tokenize). What I am trying to do is get an ...
Zak's user avatar
  • 113
0 votes
0 answers
69 views

Wordpress 6.4.2 - can't load editor style css using 'after_setup_theme' or 'admin_init' actions

My hosting company upgraded my remote Wordpress version of my site to 6.4.2 and as I mentioned in a previous ticket alot of things stopped working. One item that seems to be broken are the custom ...
Mike Sav's user avatar
  • 127
0 votes
0 answers
7 views

Site Library issue

How can we use this site library template for a single page ( blogs page where we fetch and display all the blog posts ) without affecting the website theme or pages. and how to connect with ...
Jai Gupta's user avatar
0 votes
0 answers
123 views

Loop through Redux option framework repeater field

I am using Repeater field of Redux Framework in WordPress. I have created the repeater field and assigned the data. Now I am trying to display those data in front end. But I am not getting how can I ...
Milan Bastola's user avatar
0 votes
1 answer
33 views

Best way for managing images of ads banners

I started building a custom theme and I have a lot of ads banner image on different pages of the site. But my concern is about slowing down the site's loading speed. What is the best way to display ...
och's user avatar
  • 39
0 votes
1 answer
155 views

How to show associated fields if checkbox is checked in customize widget screen using wp_customize?

I created a checkbox section to let user to choose whether wants to display a button in the menu or not, I set the default value to false, and created two fields for the label of the button and the ...
Hatem Frere's user avatar
0 votes
1 answer
45 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 ...
user3593214's user avatar
2 votes
1 answer
697 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 ...
clark's user avatar
  • 581
0 votes
1 answer
121 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: ...
Chl Lila's user avatar
0 votes
1 answer
33 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 ...
what ever's user avatar
0 votes
1 answer
29 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 ...
latif tahta's user avatar
0 votes
0 answers
54 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 (!...
abdullahyanik's user avatar
0 votes
0 answers
61 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 ...
Rob Wilkinson's user avatar
1 vote
1 answer
998 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 ...
Kevin Kenan's user avatar
0 votes
1 answer
108 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 ...
sabbir ahmed's user avatar
0 votes
0 answers
520 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 ...
sallycakes's user avatar
0 votes
1 answer
2k 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=&...
Philipp Mochine's user avatar
0 votes
1 answer
31 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/...
Melebius's user avatar
  • 105
0 votes
1 answer
43 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 ...
Vance's user avatar
  • 1
1 vote
0 answers
55 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 ...
Cobyfoster99's user avatar
0 votes
0 answers
140 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 ...
Zamil Ahamed's user avatar
0 votes
1 answer
2k 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 ...
Noufal Binu's user avatar
0 votes
1 answer
8 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->...
adviner's user avatar
  • 111
0 votes
1 answer
51 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-...
iso's user avatar
  • 1
0 votes
0 answers
423 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 ...
psycho developer's user avatar
0 votes
1 answer
48 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
user315338's user avatar
0 votes
2 answers
2k 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 ...
Atif Aqeel's user avatar
1 vote
3 answers
88 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&...
ryzza's user avatar
  • 11
0 votes
1 answer
158 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 ...
aybo's user avatar
  • 1
0 votes
1 answer
21 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 ...
Mohamed Omar's user avatar
0 votes
2 answers
148 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 ...
J.BizMai's user avatar
  • 870
0 votes
1 answer
47 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 ...
Ahmad Ali's user avatar
  • 121
0 votes
0 answers
44 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: ...
Svenwas3f's user avatar
0 votes
1 answer
568 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 ...
Anake.me's user avatar
  • 246
1 vote
1 answer
259 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
Anupam Tiwari's user avatar
1 vote
0 answers
135 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 ...
toneyt's user avatar
  • 41
0 votes
1 answer
359 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 ...
MauF's user avatar
  • 211
0 votes
1 answer
939 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 ...
Rajnish Suvagiya's user avatar
0 votes
1 answer
55 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=...
Gissipi_453's user avatar
0 votes
1 answer
1k 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 ...
Bharath's user avatar
0 votes
0 answers
159 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 ...
worisi24's user avatar
0 votes
2 answers
377 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://...
Louis D.'s user avatar
  • 101
2 votes
1 answer
1k 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 ...
Matthew Brown aka Lord Matt's user avatar
0 votes
1 answer
74 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 ...
Nelly's user avatar
  • 1
3 votes
2 answers
425 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 ...
Nazariy's user avatar
  • 131

1
2 3 4 5
10