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.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
1k views

How do I translate theme settings?

How do you translate custom theme settings in Drupal 8? I use hook_form_system_theme_settings_alter to add custom settings to a theme. One setting is the text string (e.g. 'Menu') to display beside ...
2
votes
0answers
79 views

Unlimited value field in theme settings

Trying to implement an unlimited value date field in my theme settings, using theme_form_system_theme_settings_alter to add the form inputs, including a button with an ajax callback function, which is ...
2
votes
1answer
50 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 ...
2
votes
0answers
32 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 : www.mywebsite....
2
votes
1answer
328 views

How to give a 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 ...
2
votes
0answers
198 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
1answer
429 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
0answers
660 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
50 views

Subtheme install settings in config but not showing

In a brand new site installation, I created a subtheme of the Bootstrap theme. In the subtheme (let's call "mytheme") config/install/mytheme.settings.yml file, I have the following settings. settings:...
1
vote
0answers
68 views

theme-settings array of data configuration

I'm building a theme and right now I have individual key:value sets and hard coded values in the theme-settings.php for setting up a front page slideshow. I would like to know if there's a way to ...
1
vote
0answers
170 views

Logo settings in sub-theme not working

Followed the step to create a subtheme of bootstrap theme. Now, I am not able to see new logo updated, logo is overridden by default logo of bootstrap. 1) Downloaded Bootstrap project (8.x-3.x-dev). ...
1
vote
0answers
366 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 ...
1
vote
0answers
59 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
0answers
48 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 ...
1
vote
1answer
34 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 ...
1
vote
1answer
40 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. ...
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
0answers
302 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, ...
0
votes
0answers
24 views

Images get deleted when uploaded to a theme settings field

I've got some custom text_format fields set up in my theme settings, but images don't seem to be working correctly with them. For some reason images uploaded to these fields don't get marked as "used" ...
0
votes
0answers
341 views

Print diferent site logo depending on the language

I have two logo. One logo for ENG and one logo for another language. How to print diferent logo on page depending on the language? Does I need to put some if function who would checks language or ...
0
votes
1answer
29 views

Overriding, create theme from scratch or modifying core theme?

I have noticed there are many ways of doing this and just wanted some advice on which to go for. I have a static webpage and trying to migrate my CSS to Drupal. Can I inherit main functions of a core ...
0
votes
2answers
666 views

Cache pages for anonymous users stuck on

I can't turn off the "Cache pages for anonymous users " cache option. I uncheck it and then hit save as usual but it stays on. Is there some sort of module conflict causing this or possibly an issue ...
0
votes
0answers
72 views

Logo does not display after uploading it

After I selected the logo in the theme settings (Appearance > Settings > Choose File), I clicked 'Save Configuration'. It says 'custom logo path is invalid'. I did not have write permission for the ...
0
votes
0answers
127 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
1answer
153 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
1answer
99 views

Missing Logo block on a fresh build of Drupal 7 using Omega 3.x theme

I just did a fresh install of Drupal 7 and I'm currently made a sub-theme with omega 3.x and for some reason the blocks page is missing the logo block. I tried also uploading a logo image on the sub-...
0
votes
1answer
193 views

Site name\logo in a panel pane?

I want the site's name\logo to appear in a column in a Panels pane (instead of it's regular appearance in the header region). is there any way to achieve this without programing?
0
votes
0answers
217 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. ...
0
votes
1answer
156 views

Logo size should not reduce after uploading - Drupal 7

I have had uploaded a logo in my site. After uploading the image's size is reduced. Because of that, image quality is decreased and it doesn't look good. What should I need to do TO NOT REDUCE THE ...
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
773 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
185 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....
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 ...
0
votes
2answers
92 views

Add epsacrop to programmatically added image field

I'm adding an image field to my theme form in order to setup a default image for the user. I'd like the user to be able to use EPSAcrop to crop the image he uploads here. Is this possible, if so; How?...