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
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
1answer
1k views

How to determine the priority of css files in info file for a theme?

I have several css files in a theme info file. Suppose i have two definitions of h2 in different files? How to configured the files so I manage to get the h2 definion I want? I edited the question ...
1
vote
1answer
89 views

How to display 12 grid for development purpose in bootstrap?

I am using bootstrap theme and create child theme. i want to display 12 grid for development purpose. Can any body tell me how to enable this? Thanks
3
votes
1answer
659 views

How can I remove the site logo?

I want to remove the logo from my site. I found some instructions here: http://www.inmotionhosting.com/support/edu/drupal-8/themes/toggle-logo My problem is that the instruction say to untick "Logo" ...
0
votes
1answer
496 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
130 views

How to add custom text settings to a custom theme?

I'm working on a custom theme called "YingYang". I didn't make the theme, but I have to do some stuff with it. The theme has custom text settings which is bassically some pre-set content. It looks ...
2
votes
1answer
98 views

Theming logo and site name

I am using Corporate Clean theme and I want to make some changes to how the logo and site name are displayed. What file would do that in? Sorry, newbie here!
3
votes
1answer
723 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 ...
0
votes
2answers
90 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?...
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. ...
1
vote
1answer
179 views

Term reference field - print as other format

I'm using term reference field, which is displaying as entity. I want to print this in the other place of node.tpl, not full entity but only names. Is this possible? I've tried <?php print ...
1
vote
1answer
1k views

How to use a relative path for a theme's favicon

I'm trying to ship a favicon with my custom Drupal 8 theme, but I can't figure out how to specify its location relative to my theme's installation location. Following this answer I've created a ...
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 ...
7
votes
2answers
6k views

How do I add custom theme settings?

In my theme I have link to social network. So, I would like to have field in theme settings where administrator can put link what would be use in all place where is {{link-social-network}}. <a ...
1
vote
2answers
111 views

How to hide the text format field set using css?

I followed several recommendations and decided to go with using CSS to hide the text format. I don't want to use another module to do something minor like this. Just want to hide text format for this ...
1
vote
0answers
348 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 ...
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 ...
1
vote
0answers
17 views

Savings values to file form field on form submission - theme-settings.php [duplicate]

I'm trying to build a custom file upload field in my theme-settings.php file, but I can't seem to get the uploaded file to persist after the form is submitted. Setting the default value as it is set ...
0
votes
0answers
333 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 ...
2
votes
1answer
1k views

Automatically clear cache

Theme: Basic 8.x-1.x-dev I am trying to clear theme data after any change is done to twig files. I see that rebuildThemeData is here: https://goo.gl/EA2YL4 Currently have this within my .theme file....
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 ...
2
votes
1answer
319 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 ...
1
vote
0answers
163 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). ...
0
votes
1answer
46 views

How to choose a default theme in drupal if your theme give you errow white screen?

I tried to make a folder templates for all tpl files but after that now I can not load my theme anymore on Xamp?. Now when I try to load theme in drupal there was only white screen.What can I do? I ...
4
votes
3answers
5k views

Favicon not loading from https

I have enabled https for my site. All images and files are served with https url, but favicon it is serving from http://example.com/sites/default/files/favicon.ico instead it should show as https://...
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 ...
1
vote
3answers
4k 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
2answers
44 views

Is there any module for image icons and bullets? [closed]

In many sites we see small image bullets and icons before the tabs or text. Like small icon of chat image, or standard small icon of save button. FOR EXAMPLE purpose I have taken the screen shot of ...
1
vote
1answer
254 views

Line breaks with theme settings textarea

I'm using the following to get a form field in the theme settings page function theme_form_system_theme_settings_alter(&$form, $form_state) { $form['foo_example'] = array( '#type' ...
0
votes
0answers
71 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 ...
2
votes
0answers
78 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
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
1answer
1k views

Is it possible to theme node add form in drupal 7

I am using zen drupal-7 sub theme. I have created a content type named edison. I need to change the node add form for the user. I've tried adding page--node--add--edison.tpl.php in template.php. I ...
1
vote
1answer
116 views

Need help with my form with duplicate file and resetting form

Need help with my form for uploading an image on my theme's settings. I have a form that uploads an image that can be used as a background image. I have two problems with my form: first is how to ...
0
votes
1answer
133 views

Passing Settings from page.tpl to Javascript: Uncaught TypeError: Cannot read property

I want to pass this to my js file : in page.tpl <?php $my_settings = array( 'message' => $message, ); drupal_add_js( drupal_get_path('theme', 'sizin') .'/js/anim.js', array('...
2
votes
1answer
98 views

Pass a logo to image module

How do I pass the logo on my theme to the image module to create different sizes? I'm using domain access to I can't use <?php print theme('image_style', array('style_name' => 'thumbnail', '...
0
votes
1answer
68 views

display results from a form in theme-settings.php

I've been working on a way to upload a background image for months and I finally got it to work. How do I display the URL to the image on page.tpl.php? It's a form called background_file. Here's my ...
0
votes
2answers
504 views

Display Image logo along with site slogan and site name

I am using Impact theme for my site. It either displays text logo(site name, site slogan) or image logo. I want both image logo and text logo for my site. Any helps are welcomed
0
votes
1answer
34 views

How to create a form on settings o settings page

I like to learn how to crate a form on theme settings page to save two variables In my thempate.php are some conde as follows: function MYTHEME_preprocess(&$variables, $hook) { $variables['...
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
1answer
151 views

Page Caching wrong CSS

got a weird issue I was hoping someone could help with. I have a site that uses multiple subthemes, with different ones being served depending on url var. IE, subsiteone.mysite.com, and subsitetwo....
3
votes
2answers
629 views

Upload Image in system_theme_settings form using Zen on Domain Access System

I want to upload the image as the background in the settings page of the zen theme. In zen , It's easy to add an extra field in the theme-settings.php and it's worked at the single site system. ...
0
votes
0answers
122 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 ...
1
vote
3answers
1k views

Default logo according to theme setting

I'm creating the theme with two styles, dark and light. User can choose which style he wants in theme settings. My default theme logo is in the root of the theme. Now I want to change default logo ...
2
votes
1answer
82 views

Is it possible to set a single member of a complex-variable inside the variable table

I want to use Drush vset to modify a subset of values stored in the 'variable' table's theme_themeName_settings record. I've found references to vget and vset but all I've found so far is for the ...
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 ...
0
votes
2answers
836 views

Add custom title and custom alternative text to Logo Image Settings

I am looking for a module that adds custom Title and Alt fields to the box shown below in the Appearance Settings of a theme
2
votes
1answer
536 views

Using theme_get_setting getting empty value

I am using theme settings in my Drupal 7 theme to provide a theme option as follows. $form['mythemename_settings']['loaderImage'] = array( '#type' => 'fieldset', '#title' => t('Loader Icon')...
0
votes
1answer
152 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 ...
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 ...