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

learn more… | top users | synonyms

0
votes
0answers
21 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
33 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
25 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
23 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++){ ...
0
votes
1answer
22 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
49 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
13 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
24 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
22 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
0answers
47 views

Theme settings override (image upload)

I'm using Drupal 7. I'm trying to override an existing theme to let the user control the web site banner in the header via theme preference. I already did this in theme-settings.php : ...
0
votes
0answers
41 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
41 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
33 views

I use theme pixture reloaded problem with Panels anywhere

home page made by panel when I enable panel anywhere module my theme is not display properly but when I disable that module it looks good. How can fix this issue?
0
votes
0answers
37 views

Can I replace omega's alpha-reset with normalize.css?

I am using omega 3 theme with Drupal 7. I switched off all omega and alpha styles, even alpha-alpha.css but left alpha-reset. I did it for performance reasons cause I don't need to override alpha and ...
0
votes
0answers
37 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. ...
3
votes
1answer
67 views

how to make modules depend on theme?

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
413 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
0answers
40 views

Theme Preview Option Issue In IE Browser

I have enable color module and used that module files in the theme folder and used to get theme preview option. This is working fine in every browser except IE(9,8,7). If I change color scheme value ...
0
votes
1answer
59 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
69 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
151 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
33 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: ...
0
votes
2answers
133 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
436 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
87 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"; ...
4
votes
1answer
287 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 ...
0
votes
0answers
17 views

adding id attribute when linking stylesheet from themeName.info [duplicate]

I am working on drupal theme. In past, i linked stylesheets via the themeName.info file as follows: stylesheets[all][] = css/thickbox/thickbox.css stylesheets[all][] = css/custom.css However, this ...
0
votes
1answer
138 views

CKEditor not loading in custom theme

When I disable Seven as administration Theme and enable my own custom theme CKEditor controls just disappear from every editable text field. Every thing works great with default Seven theme. Mine ...
2
votes
1answer
486 views

Can't change my custom logo for Bartik-theme. How to fix this?

Have newly installed Drupal 7 . Tried to change my logo to a custom logo. Worked the first time. Theme Bartik was activated. Now wanna change the logo a second time, can't do it. Can't disable it. ...
0
votes
1answer
40 views

How to pass values directly from THEME_NAME.info to THEME_form_system_theme_settings_submit()

Does anyone know a smarter way to load given settings from the THEMENAME.info file for the submit function only, than to create another "ghost"-form calling theme_get_setting() ? I would like to ...
1
vote
2answers
1k views

How to add css class attributes to the anchor element inside the links of a given menu by theme function

Do I miss something or is it impossible to theme the link anchor HTML element <ul class="main-menu"><li><a href="" class="put something in here"></li></ul> for a ...
1
vote
1answer
246 views

Don't render html.tpl.php for a specific path

Is it possible to load page content without rendering html.tpl.php? I mean on default Drupal has the follwoing: Html.tpl.php --> Page.tpl.php -->...(etc.) my goal is to remove Html.tpl.php for a ...
3
votes
2answers
971 views

CSS not loading on Chrome for drupal site after moving to https

I have a Drupal site which has huge content. Recently I moved my dev content on production and also changed the site URL from http to https. The problem is that the site is working fine on all browser ...
2
votes
1answer
201 views

How to pass a form field value from THEME_system_theme_settings_alter() to THEME_form_system_theme_settings_submit()

MYTHEME/theme-settings.php: THEME_form_system_theme_settings_alter() builds an input form for /admin/appearance/THEME and the input (values) of the user will not be known by Drupal nor by ...
2
votes
3answers
1k views

How to change my maintenance page?

As the title explains, I want to make a custom maintenance page, different from the default one. For that I've read this tutorial: Theming the Drupal maintenance page. I copied the file ...
0
votes
1answer
36 views

succesfully changed order regions in info file, but rendered html stays untouched

Layout-wise I want 3 columns in this order: sidebar first - content - sidebar right. Since the region order in d7 is content - sidebar first - sidebar second I wanted to change that order in html. ...
1
vote
0answers
915 views

Omega - add new section

I would like to add a new section to my Omega sub-theme but I can't seem to find any documentation on how to do this. By default there are only 3 sections: Header section, Content section & ...
0
votes
0answers
166 views

“Add More” button in theme-settings.php

The following code is a snippet from the examples for developers project: function form_example_tutorial_9_add_name($form, &$form_state) { // Everything in $form_state is persistent, ...
1
vote
2answers
2k views

Use Bootswatch.com themes with Drupal Twitter bootstrap

I would like to know the easiest, simplest and quickest way to use anyone of the bootswatch.com free themes. There are some great themes there, better than I could spend a good 4+ hours trying to do. ...
1
vote
2answers
3k views

How do I apply different css files to different viewports with Omega subthemes?

I´m working with an Omega 3.x Subtheme in Drupal 7. I´ve been reading the handbook of Omega, specially about the layered css files. Even if I do understand that the layer structure of the default ...
1
vote
2answers
163 views

Make a field theme function work on empty fields

I am using a field theme function in my template.php file to override a field. Everything works fine, but the function only seems to run if my field has content. If my field is empty, it does not ...
0
votes
1answer
532 views

How to use images in theme settings

In Drupal 7, I am trying to put an image field to allow an image to be uploaded to the theme settings. I am using managed file from the form API to do this. Here is my code: ...
0
votes
1answer
323 views

Hide menu titles in Omega subtheme

Can anyone help me how to delete or hide the menu titles (eg MAIN MENU title)? I know how it is done when I do it on a static template but I cannot find it in Omega.
1
vote
1answer
405 views

Use theme_get_setting to get a value

I am using theme settings in my Drupal 7 theme to provide a theme option as follows: $form['layout']['body_image_position'] = array( '#type' => 'select', '#title' => t('How should Body ...
3
votes
2answers
97 views

Get the Dimensions of the Theme Logo

In Drupal 7 theme settings, you can upload a logo. How do you print the width and height of this logo in your theme? Background Research: theme_get_setting('logo') lets you get the path of a logo ...
2
votes
2answers
662 views

Is there a way to add managed_file field to theme-settings.php?

Anytime I add a managed_file field to theme-settings.php, the field works, however, it gets saved with a status of 0 in the database. When I add a submit handler to the theme settings form, I get a " ...
0
votes
0answers
208 views

Theme not working after database transfer (Theme key “0” not found)

I have copied the database of my production site to my dev site and my theme is not working anymore (on the dev). The content (nodes) is not exactly the same, but theme folder is. All the information ...
2
votes
2answers
2k views

Switch to Drupal Mobile Theme Programatically

I found the following code on http://detectmobilebrowsers.com/ and would like to use it to programatically switch from my default theme to a mobile theme that I will also have active. <?php ...
1
vote
0answers
122 views

Unchecking “rebuild theme cache” caused site to break

I'm new to Drupal and I've unchecked the "rebuild theme cache" option on my Drupal 7 site, now the site only shows a blank white page when loading (no html returned when I view the source on Firefox). ...
1
vote
1answer
213 views

file_create_url printing different addresses on live and local installations

I'm using the following code to print out the path of an image uploaded through theme-settings.php: <img src="<?php print file_create_url(file_build_uri(theme_get_setting('my_setting')); ?>" ...