Questions about theme settings, the settings that can be retrieved with theme_get_setting().

learn more… | top users | synonyms

0
votes
1answer
15 views

Passing Settings from page.tpl to Javascript: Uncaught TypeError: Cannot read property

I want to pass this to my js file : in page.tpl <?php $my_settings = array( 'message' => $message, ); drupal_add_js( drupal_get_path('theme', 'sizin') .'/js/anim.js', ...
2
votes
1answer
47 views

Pass a logo to image module

How do I pass the logo on my theme to the image module to create different sizes? I'm using domain access to I can't use <?php print theme('image_style', array('style_name' => 'thumbnail', ...
0
votes
1answer
31 views

display results from a form in theme-settings.php

I've been working on a way to upload a background image for months and I finally got it to work. How do I display the URL to the image on page.tpl.php? It's a form called background_file. Here's my ...
0
votes
1answer
15 views

How to create a form on settings o settings page

I like to learn how to crate a form on theme settings page to save two variables In my thempate.php are some conde as follows: function MYTHEME_preprocess(&$variables, $hook) { ...
1
vote
1answer
46 views

Page Caching wrong CSS

got a weird issue I was hoping someone could help with. I have a site that uses multiple subthemes, with different ones being served depending on url var. IE, subsiteone.mysite.com, and ...
1
vote
3answers
28 views

Default logo according to theme setting

I'm creating the theme with two styles, dark and light. User can choose which style he wants in theme settings. My default theme logo is in the root of the theme. Now I want to change default logo ...
0
votes
1answer
30 views

How to theme regions in non-standard themes like Consilium?

So I'm stuck with a theme that is very difficult to work with because it is nonstandard. It seems like it would like to be Omega and put lots of functionality into the admin UI and out of template ...
0
votes
0answers
26 views

Error with admin UI on /admin/structure/block

There's an issue with my /admin/structure/block page where the default Seven theme isn't styling the page and the code is generating the No blocks in this region message for every single region even ...
0
votes
0answers
26 views

Problem with function from theme-settings.php in sub-theme

I want to create the sub-theme of my custom theme but I have the problem with the function from theme-settings.php. I have a few managed_file fields in my theme settings and my submit function for ...
0
votes
0answers
15 views

7 - Theme settings default value for file upload?

I have a file upload field in my theme settings form... like this: $form['logo_2'] = array( '#type' => 'managed_file', '#required' => FALSE, '#upload_location' => ...
1
vote
1answer
18 views

Is it possible to set a single member of a complex-variable inside the variable table

I want to use Drush vset to modify a subset of values stored in the 'variable' table's theme_themeName_settings record. I've found references to vget and vset but all I've found so far is for the ...
0
votes
0answers
36 views

Get field formatter setting value from preprocess

I have added to media>video files a taxonomy term reference "video_quality", i.e. 480, 720... I use those files in a content type "video-article" and render the file with Video.js module. This module ...
0
votes
0answers
31 views

Can't make managed_file field to work

I added the file field for the image in theme settings and created variable in template.php file, but I can't make it work and I'm not able to upload the image file (after uploading the page refreshes ...
0
votes
1answer
71 views

How to set the file status of files uploaded through Drupal 7 theme settings to permanent

I have been trying for a week to get image files uploaded to a Drupal server through the use of "managed_file" theme settings to remain on the site longer than the default 6 hours. I have visited the ...
2
votes
1answer
61 views

Using theme_get_setting getting empty value

I am using theme settings in my Drupal 7 theme to provide a theme option as follows. $form['mythemename_settings']['loaderImage'] = array( '#type' => 'fieldset', '#title' => t('Loader ...
0
votes
2answers
94 views

Add custom title and custom alternative text to Logo Image Settings

I am looking for a module that adds custom Title and Alt fields to the box shown below in the Appearance Settings of a theme
0
votes
0answers
37 views

Open Atrium 2: Get back the old design

Is there a way to make Open Atrium 2 look a bit more like Open Atrium 1 (e.g. display icons for the sections)? We'd like to make it easier for our users to switch. Besides OA 1 looks friendlier in our ...
1
vote
1answer
27 views

Display external link using theme settings

I'm using theme-settings.php to store links to external pages (like Facebook, Twitter, etc.) and the links aren't storing correctly. In theme-settings.php, I have: function ...
0
votes
1answer
69 views

file_managed not working when i try to save permanently

First of all, i want to say that i tried everything, i have coded since 10:30 am and i cannot get the solution, i looked in forums, combined code and many other things and nothing seems to work. What ...
0
votes
4answers
139 views

Pass php variable to javascript

I'm trying to pass variable to my js file. The file is located in my theme /js directory. The filename is backgroundConfig and this is the content of file: (function($, Drupal){ ...
0
votes
1answer
114 views

marinelli banner images not cycling

drupal 7 marinelli banner images not cycling (no forward or back icons either) I had disabled banner for a while and on trying to re-enable, images load but don't cycle. my back up site works but ...
0
votes
1answer
10 views

Prevent form fields changes

I have custom field on theme settings. I get default_value for that field from .info file and that's OK. I change the value of that field and submit the form and get a changed value but I do not want ...
1
vote
2answers
169 views

Drupal 8 Theme Header Background Image Upload

I'm upgrading the Mayo theme to Drupal 8. For Drupal 7 it worked like this in theme-settings.php with hook_form_system_theme_settings_alter(): $form['adv_header']['header_bg'] = array( '#type' ...
2
votes
0answers
24 views

Drupal themes all deactivating at irregular interval

I recently updated my website from 7.22 to 7.33. I have a problem with my templates randomly getting disabled. I have 3 themes : desktop / mobile / corpo. My URLs are has follow : ...
0
votes
0answers
25 views

Problem in theme-settings trying to save and modify file drupal 7

I have downloaded a template and what i want to achieve is that i can upload a file from the template option without using the ftp client. I have three slideshows and the code that i have implemented ...
0
votes
0answers
29 views

Theme setting upload image

I have made some custom setting, basically it's an image upload via theme_setting, but none of them work. And I am seeking for your help guys. Code: for($i = 0; $i < ...
3
votes
2answers
222 views

Upload Image in system_theme_settings form using Zen on Domain Access System

I want to upload the image as the background in the settings page of the zen theme. In zen , It's easy to add an extra field in the theme-settings.php and it's worked at the single site system. ...
0
votes
1answer
490 views

Turn off responsive behavior for Bootstrap 3

I know how to turn off responsive in bootrap . but how it can be in drupal theme. As i am using Drupal Bootstrap and created a subtheme. can that subtheme be non-responsive ??
1
vote
2answers
835 views

Uploaded images in theme settings is going to be lost

I have a flexslider and I make its images customizable through the theme settings. I added a caption property for the the slide to meet multiple languages websites as follows in theme-settings.php: ...
0
votes
0answers
87 views

Using a custom module in D7, how can I programmatically change a theme's logo?

I'm writing a custom module. The module's only purposes is to programmatically change a theme's header logo on page load which randomly is selected from a group of 5. The popular answer here suggest ...
0
votes
0answers
37 views

Some theme settings data could not be retrieved in the tpl

I added extra settings values set to the theme that I use in 7. The extra settings set is uploading a defined number of images, in-order to be used in a slideshow. It has been done as the following, ...
0
votes
1answer
80 views

Is there a way to upload files to the theme directory

I use the following code to upload images should be used in slideshow of the theme settings theme-settings.php: for ($i = 0; $i < 7; $i++){ ...
1
vote
1answer
98 views

How to give an content editor access to the theme settings?

I'm using the Marinelli theme and want to give my main content editor access to the theme settings. Ideally just the ability to upload/change/add/subtract/enable the backgrounds of the rotating ...
1
vote
1answer
74 views

Why are there so many settings.php files one in each folder or sub-directory?

I am Drupal newbie taking over a poorly documented D6 group of sites organized by sub-domains. In examining the dev.[domain].org/sites/ folder I discover folders: all, default, demo.[domain].org and ...
0
votes
1answer
19 views

Enabling a block to inherit the settings of a sub theme

Being relatively new to Drupal, I apologize in advance if what I'm saying is unclear, but I'd imagine that a fix should be simple enough: Basically, I'd like to add a header block that functions ...
0
votes
1answer
27 views

Page view mode and node settings

I have been creating new view modes with the entity view mode module as well as created template files for the new view modes. At this point I would like to know how I tell a given page or url (ie. ...
0
votes
2answers
42 views

Show custom menus in seven theme

I am using Seven for the theme of a internal application. I have custom items setup in the mainmenu, but cannot get it to show?!?! The blocks for seven are limited to content and help (despite the ...
0
votes
1answer
189 views

Extending the Year range in Popup Calendar

I am trying to extend a year range of a popup calendar in drupal 7 but have been unable to see where I can do this. After doing more research, I discovered that I can change it through the 'More ...
0
votes
1answer
77 views

Site with Themekey has CSS cross-contamination

I'm using Themekey with Context to enable one of three different themes on a site, depending on a themekey field. The homepage is set to use my main theme, called 'sitetheme'. Sitetheme is set as ...
0
votes
0answers
157 views

changeing serveral classes when navbar style is switched on settings site in bootsrap 3 theme

Hy folks, Im new to themeing drupal and force my luck wiith the bootstrap 3 framework. I like to change some styles conditionally to the users selection of the navbar style in the theme settings. ...
6
votes
1answer
331 views

How to make a theme depend on a module?

My theme requires multiple modules to be install before it is fully functional. How can one set module dependency in a theme, so that when a user enables the theme, it will also enable the required ...
0
votes
2answers
1k views

Form API: only show form field to certain roles

Drupal's form API has a visibility state property that allows you to hide certain Form fields depending on the options selected in earlier forms. Is there something similar for User role (e.g. a ...
0
votes
1answer
96 views

Only ONE CSS File for Visitors (and more for Admins)

So I just started creating a theme for my first big drupal project, and instantly had to quietly cry in a corner, as I saw how many css files Commerce Kickstart 2 and Omega4 are serving by default. ...
0
votes
1answer
216 views

Is it possible to use drush to save a theme setting?

I need to set a theme setting via a scripting mechanism (specifically phing). Is it possible to use drush to set a very specific theme setting, without passing json? drush vset {theme_setting} ...
0
votes
2answers
283 views

How to enable HTML Output for Checkbox Text in Admin Drupal

I am adding theme styling settings and I would like to have associated color to the checkbox in themes setting form. So far, i haven't been able to do so, because the output strips inline styling and ...
0
votes
1answer
69 views

Theme Settings value dissapears

I am trying to create functionality where administrator can upload header image whenever he wants. I' using hook_form_system_theme_settings_alter in theme-settings.php and altering form like this: ...
1
vote
3answers
998 views

How to set theme setting

i need to set theme setting programmatically. I use mothership theme. So for example: $type = theme_get_setting('mothership_classes_view'); dpm($type); //dpm displays 1 - so this setting is checked ...
2
votes
1answer
925 views

How to save custom theme settings in a subtheme?

I've created a subtheme of the Premium Responsive theme. It was working fine until I tried to change some of the advanced theme settings within the subtheme's Appearance page. The parent theme adds ...
0
votes
1answer
122 views

Set <front> page in theme settings? [duplicate]

I've created a settings page for my theme, and I'd like to be able to set the frontpage from there, but I don't know how I can change the frontpage in code? This is the setting: $node_type = "page"; ...
7
votes
1answer
680 views

Adding a dependencies in theme info file

Can I use dependencies[] = module name in the theme.info file? I want to create a drupal theme where I using some dependencies module, if I able to mention the dependencies in theme info it will easy ...