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

twentytwenty theme: what is the css selector(s) for Desktop Expanded Menu

I'm using the twentytwenty theme and would like to modify the appearance of the desktop expanded menu. What are the css selector(s)? Specifically, I'd like to narrow the overall menu width. Once I ...
0
votes
2answers
19 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 ...
0
votes
1answer
28 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 ...
0
votes
0answers
33 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
0answers
21 views

wp_options in multilanguage web site

I am trying to create a multilanguage supported template in WordPress. But I have a issues about options. I am using the WPML plugin. I am creating options like this: register_setting('mediaport-...
0
votes
0answers
62 views

Wp customizer range slider live preview

I have this: function cd_customizer_settings( $wp_customize ) { $wp_customize->add_setting( 'global_font_size' , array( 'default' => 16, 'transport' => 'postMessage'...
0
votes
0answers
17 views

Add notification and theme menu page with custom form

I want to add a theme options page for my custom theme, as the first support point of contact for the client. Also, I want to display a notification on the WordPress admin dashboard that can link ...
0
votes
1answer
18 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 ...
1
vote
1answer
53 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
0
votes
0answers
12 views

Remove IMG button don't work

I'm creating a wordpress theme, but in the "theme Options" page, the buton to remove image don't work. And i don't know because what. My code is: case 'upload': $visibility_class = ( '' != $...
0
votes
0answers
21 views

How to force a page to use the theme options/template even though it is related to a plugin?

I have a Zakra theme which allow me to choose a compact view without sidebar on a page. It works fine unless the page is somehow linked to a plugin or wordpress (the blog page for example as it is set ...
1
vote
0answers
20 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
23 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
131 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
33 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
14 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
1answer
153 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
31 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
92 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
45 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
42 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
125 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
91 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
46 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
1answer
9 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
33 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
13 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
959 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
141 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
30 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
406 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
49 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
384 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
571 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
692 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
13 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
23 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
72 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
38 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
153 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
28 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
81 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
2 3 4 5
10