A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [theme-settings]

Use it for questions about the settings that can be retrieved with theme_get_setting(). Don't use it for generic settings.

Filter by
Sorted by
Tagged with
9
votes
1answer
2k 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 ...
1
vote
2answers
3k 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
2answers
300 views

Changing logo depending on user [closed]

I wan't to be able to change the site logo depending on which user that are logged in. My guess is that I would be able to do something in page.tpl.php that check's if there is a user image and if ...
0
votes
1answer
115 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
555 views

Get domain logo in views (using Domain Access module)

I'm using Domain Access module and I have different logo for each domain. I have setup logo for each domain in domain theme settings. I have view which lists all the domains (over relationship with ...
1
vote
1answer
700 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
113 views

Site logo display is low quality

My site logo looks pixelated even though the image has been sized exactly. When I open the image url in a separate window, the quality is as per expected, however, the display on the site is low ...
0
votes
2answers
723 views

How can I enable HTML output for checkbox options?

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
88 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: $...
2
votes
3answers
4k 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 //...
0
votes
1answer
182 views

How to change logo dynamically?

How can i change the logo on a site, dynamically, with a URL field which doesn't point to an actual image but to a rendering of an image. Is this possible? I've tried this: $thisimage = $logo_img_url....
2
votes
3answers
2k 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
212 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"; ...
9
votes
1answer
2k 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 ...
-2
votes
1answer
218 views

How to add additional logo in drupal 6 [closed]

In my theme, while configuring the theme i am able to configure my Logo on "Logo image settings" . But i need to configure one more logo in the same way. I am displaying 2 logo`s in my project in 2 ...
0
votes
0answers
18 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
492 views

CKEditor not loading in custom theme [closed]

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
2k 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. ...
8
votes
4answers
8k views

Why does the favicon sometimes not show up and generate “page not found” errors, and other times does show up

As the question implies, on occasion Drupal's log is showing that the favicon is not found. Indeed, it does not show in the browser tab or address bar. At other times, even within the same surfing ...
0
votes
1answer
58 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
8k 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
1k 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
2k 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
817 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 ...
3
votes
3answers
8k 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 /module/...
0
votes
1answer
48 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
1k 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 & ...
1
vote
1answer
424 views

Deleted FAVICON from themes folder. Still its showing up - d7

I have deleted the favicon.ico from the themes folder. But its still showing up the same favicon. I totally confused. Steps I have taken: But nothing works... :-( Checked whether I am in the right ...
1
vote
1answer
184 views

How do I remove the default 'my cms' text from my drupal 7 webpage with the bartik theme?

I have recently created a webpage with drupal 7 and currently have the bartik theme applied. However, I have encountered what I assume is a trivial issue but have been unable to fix it. The site has ...
1
vote
0answers
301 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, ...
2
votes
2answers
1k views

Problem with favicon and theme settings

I'm having an insane problem enabling shortcut icon in my theme. When I dpm theme_get_setting('favicon') and theme_get_setting('toggle_favicon') - I get null strings, even though in the Shortcut icon ...
4
votes
1answer
3k views

Change site logo for an specific content type

I'm building a really simple site and I came into this question now. The site has a few content types and one of them acts as a moderated wiki (only users with a certain role may create/edit that ...
3
votes
1answer
664 views

Can't get favicon/shortcut icon to show up

Despite trying multiple times various favicon location approaches: at theme root at files root uploading the file through admin/appearance/settings typing in a path of manually uploaded icon always ...
1
vote
2answers
4k 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
6k 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
284 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 run....
0
votes
1answer
1k views

How to set a multilingual sitename for drupal

I'm using a multiligual site in french,english and arabic and i want to set a custom sitename (or logo) for each one,for ex: if my sitename for english is : "one two three" i want it "un deux trois" ...
1
vote
1answer
2k views

Changing the url which the logo links to

I'm using Zen Theme 5.x and want that the site logo links non to the front page but another page in my base url, like to a contact page. It seems that I can achieve this modifying the page template ...
1
vote
2answers
4k 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: $form['footer']['...
1
vote
1answer
490 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
2k 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 ...
0
votes
5answers
180 views

Different favicon for local version of site?

It's a small thing, but it would be nice if a site running locally could use a different version of a favicon, to make it easier to separate local and live sites visible in browser tabs. I had in ...
3
votes
2answers
498 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
2k 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
266 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
0answers
197 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). ...
6
votes
1answer
3k views

How do I display multilingual logos in D7?

I have read almost every tutorial on the net about how to setup multilingual logos. Yet, I cannot get anything to work. How do I get multilingual logos to display in D7? I have added $conf['...
1
vote
1answer
228 views

Migrate theme settings between a multisite install on Drupal 7

I have set up a second site on a multisite development instance of Drupal 7. We're using a subtheme based on Adaptive Themes. Being that plans call for about a dozen sibling sites, I would like to ...
2
votes
1answer
422 views

print theme_get_setting in php-as-css file

I'm trying to print out settings from my theme's theme-settings.php into a file called custom.php. Below is the code I'm using in custom.php: <?php header("Content-type: text/css; charset: UTF-...
2
votes
1answer
676 views

How to add another color to theme color pallette?

I have custom theme which is using Color Pallette from Bartik. I want to add another color options: 'fields' => array( 'top-bar-' => t('Top Bar background'), 'top' => t('Header top')...