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
1answer
5 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->...
0
votes
0answers
12 views

how to change demo theme

I purchased the high end theme and imported 3 demos (Main, Bloggera and Presentation). How do I change from one template to another? Only the Bloggera is appearing.
0
votes
1answer
22 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-...
0
votes
0answers
18 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
1answer
36 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
2answers
96 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 ...
0
votes
0answers
15 views

Custom CSS ace editor not loading on Theme options?

I am trying to edit a theme and it is using Custom CSS. However the Custom CSS input is not rendering for me in the admin You can see in the screen shot the Custom CSS section says "adding it to ...
1
vote
3answers
27 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&...
0
votes
0answers
17 views

Add a “add item”, and a “remove item” button to a custom WP theme customizer panel item

I have several questions regarding the WP Customizer Panel. I'm new to web design and have been self teaching how to build a WP website. I'm not super familiar with WP functions, js or jquery and have ...
0
votes
0answers
18 views

Hide certain theme options under customizer for certian user roles

I'd like to hide only certain theme options from certain logged in users (editor role). What do I need to add to the below? The below works but also removes it for the Admin user. I would like to deny ...
0
votes
1answer
9 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 ...
0
votes
1answer
11 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
0answers
13 views

moving sections around on wordpress themes that contain sidebar toggles

I am trying to edit a wordpress theme's home page and despite looking hrough some of the php and java acripts as well as searching for the Div classes in all files can not figure out how the theme is ...
0
votes
0answers
32 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
24 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
30 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
38 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
24 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
190 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
24 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
84 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
14 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
22 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
33 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
45 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
254 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
34 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
1answer
319 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
45 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
2answers
132 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
96 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
44 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
174 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
107 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
58 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
11 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
1k 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
170 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
33 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
482 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
43 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
52 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
473 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
688 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
946 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
15 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\...

1
2 3 4 5
10