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
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
2answers
3k views

How do I remove the blank space that remains after removing “logo” and “site name” and “site slogan”?

I have removed the "logo", "site name", and "site slogan" from the Theme Settings menu: Home > Administration > Appearance > Settings > MyTheme Unchecked: [Logo], [Site Name], and [Site Slogan] ...
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
222 views

Parsing a multi-valued theme-setting into to two defaults results in theme-settings not saving

The intention here is to parse out the two integers on either side of the dash, and save them as separate defaults. The problem I'm running into is nothing will actually save when I submit the theme-...
2
votes
1answer
472 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 ...
3
votes
4answers
2k views

Force an empty region to display (D7)

I'm looking for a way to force an empty region to display. I notice Omega does this via a theme-settings checkbox, but I'm unable to track down how it's done. Regardless of removing the if ($page['...
2
votes
1answer
2k views

Theme settings not getting saved

I created custom settings for my theme for storing email, fb url, twitter url and g+ url. Everything is coming properly but the settings are not getting saved. I have no idea whats wrong. All the code ...
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
404 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
4answers
3k views

Override favicon output

Some of search engines (yandex in my case) want me to output favicon with type image/x-icon. But drupal 7 outputs it without this type. How could i override this through template.php or any other ...
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
2
votes
2answers
941 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 ...
1
vote
1answer
700 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 ...
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
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 ...
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 ...
2
votes
2answers
139 views

Can a block span more than one region in a theme?

Can a block span more than one region in a theme? Sometimes I would like content to do this, depending on the page. I'm aware (and heavily use) Panels which are great but I thought it would be worth ...
1
vote
3answers
1k views

Can I set a theme's logo_path programmatically?

When adding a logo file to a custom theme, I can either save my logo in the theme folder as logo.png (replacing the default logo.png from the theme starterkit I'm using), or save my logo in the ...
2
votes
3answers
2k views

allow user to set some css settings through UI

The user wants to be able to choose some sizes and colors for the look of the site. These are css rules. I have a vague vision how this could be done by a module, but maybe there is already something ...
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
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 =...
15
votes
6answers
12k views

Change default favicon programmatically

I know I can load a favicon though the user interface, but is there a way of setting the default favicon for your theme, so that when someone enables the theme, the default icon is immediately used?
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 ...
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....
2
votes
1answer
126 views

Provide a subset of the current theme settings page

I'm looking for a way to provide a subset of: admin/build/themes/settings/<theme_name> on a different path. THEMEHOOK_settings doesn't appear to offer the necessarily granularity. Ideally I ...
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 ...
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
147 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 ...
7
votes
2answers
15k views

How to get the logo path in Drupal 7?

I have a custom logo and I have tried to get his path in this way theme_get_setting('logo_path'), but no expected result. I am using the code in a custom block, in input PHP.

1 2 3 4 5