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
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, ...
1
vote
2answers
285 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....
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 ...
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
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.
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 ...
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 ...
3
votes
2answers
501 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
1answer
473 views

About Corolla Theme Logo

I am using my logo with the Corolla theme but its give me the following error: No setting detected for Mobile first or Desktop first. Please review "Settings > Mobile first or Desktop first" and ...
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 ...
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['...
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). ...
2
votes
2answers
861 views

Alter Color module fieldset within theme settings form

I've set up Color module for my theme - it works pretty well, but takes too much vertical space (I have a bunch of colors). What i'm trying to do is to alter system-theme-settings form to make Color ...
0
votes
2answers
2k views

Center header logo in Bartik theme

I am using the Bartik theme in Drupal 7.15 and would like to have the header logo centered rather than left-aligned, is there some little piece of CSS I can add in with drupal_add_css() that will ...
0
votes
2answers
2k views

Drupal module save and retreive theme settings

I am creating a drupal module (my first) and I wish to simply store some variables. I previousely did this by adding some form elements to the theme-settings.php file but now I want to have my own ...
5
votes
1answer
3k views

Programmatically change logo

I tried two versions: 1. $form_state = array(); form_load_include($form_state, 'inc', 'system', 'system.admin'); $form_state['values']['var'] = 'theme_settings'; $form_state['values']['logo_upload'] =...
1
vote
1answer
510 views

Accent caracter encoding

I move a Drupal site and DB from old server to new (almost same setting) the site on the new server is running "almost" perfectly, but for the accent caracter encoding... here is the problem. The ...
2
votes
0answers
659 views

Omega Sub Theme Settings Page is Blank

I have recently downloaded and installed Omega 7.X-3.1 theme on my Drupal site. I followed the handbooks instructions to create my first simple HTML5 Omega sub-theme. With the sub-theme enabled I ...
1
vote
1answer
411 views

Check if logo, sitename, slogan and secondary links exist (D7)

How do you check if logo/sitename/slogan & secondary links are enabled from within a function? (outside of preprocess_page) This seems to work for logo: $logo = theme_get_setting('logo'); if (...
0
votes
1answer
405 views

different logo on different pages in Drupal 6

I want to switch my site logo for different pages. Actually there are two site logo's that need to appear on different set of pages on my drupal 6 website. What is the easiest way of doing this? Is ...
2
votes
2answers
943 views

Problem changing colors in the mayo theme

I have installed the mayo theme on my new site. When I try to go to "appearance" menu, and change the color combination from mayo (default) to anything else, the system saves the settings. but the ...
0
votes
1answer
803 views

Set link location on logo only

I want the logo on my site to go somewhere other than the home page, but I can't seem to figure out where to change that. I'd appreciate any help you can give
1
vote
1answer
701 views

Cannot disable or replace logo

I set up a subtheme of Bartik in Drupal 7. I also set up the private file system. I was styling everything and when I went to upload a logo, the logo broke. Now the logo url is private://logo_0.png. I ...
2
votes
1answer
804 views

Custom Logo in Drupal 7

What is the correct way to create a translatable in four languages website logo with slogan? I am thinking of creating a custom content type which will be populated in View block. Which when will be ...
1
vote
2answers
82 views

Subtheming to add a single template?

As a programmer, I know a great deal about Drupals backend functionality, but little about theming. I'm using Corolla as a theme, and I want to add a single Views template to the theme. Initially, I ...
2
votes
2answers
113 views

Choose theme depending on the USER_AGENT

How do I use the mobile theme if the $_SERVER['HTTP_USER_AGENT'] is mobile, and use the desktop theme if it is desktop?
1
vote
1answer
535 views

Getting a linkable table of children in hook_block_view from taxonomy_get_children (Drupal 7)

I am trying to programmatically create a block that will display all of the children of the term being referenced by the current page in a linkable table (so that I can click on any of the taxonomy ...
2
votes
2answers
86 views

Within my themes page.tpl.php file it has a reference to a lot of variables like $head and $local_styles. What file are they stored in?

Within my themes page.tpl.php file it has a reference to a lot of variables like $head and $local_styles. What file are this variables stored at so that I can looked at what each of these variables ...
1
vote
2answers
930 views

How do I insert site information data into another table?

I have developed website using Drupal. I have created an application without using Drupal, using another framework. In my application I also stored site logo,site name etc. I want to update my site ...
1
vote
1answer
898 views

Drupal 7 Bartik theme main menu

I am dabbling fresh with Drupal 7 and so far having little success with getting the Menu to behave the way I want it to. My CSS and PHP basics are strong, but understanding Drupal's system is in ...
0
votes
1answer
1k views

Logo not appearing in Seven theme with new Drupal 7 install

I've got a fresh install of D7.9 and have enabled the 'Seven' theme which has an option to override the default logo in Appearance -> Settings. I have uploaded a logo file and can see it via ftp but ...
0
votes
1answer
91 views

Garland theme and h2 heading

On D6.2 I'm using Garland. But instead of generating h1 tags for the title it is generating h2 tag. What is the best way to make it generate h1 instead of h2? Should I subtheme it and modify page.tpl....
0
votes
1answer
1k views

How to include javascript code before </body>?

I want to integrate infolink code. Finally I copied this code just before print $closure in page.tpl.php file at the bottom to make it work: <script type="text/javascript"> var infolink_pid =...
1
vote
2answers
2k views

Hide and show logo based on user role

Drupal 7 Is it possible to write an if statement in the page.tpl.php file that first gets the user role and then compares it to a string and it either shows the logo or doesn't. Something like... //...
1
vote
3answers
521 views

Sub-theming Garland in Drupal 6

I've gone through Creating a sub-theme, but there is something that is not clear to me. Why do I need to copy style.css and declare it in the info file as, in the above link, it clearly says that if ...
6
votes
3answers
17k views

How to override default favicon.ico?

I would like to load my own, but Drupal seems to forcefully load it's own by default behind the scenes.
2
votes
3answers
148 views

Change the number of entries depending on a theme setting

I have a theme setting that allows the administrator users to specify how many teasers should be shown on the home page by selecting a number from 1 to 4 (through a <select> field). Is it ...

1 2 3 4 5