Questions about theme settings, the settings that can be retrieved with theme_get_setting().

learn more… | top users | synonyms

0
votes
0answers
33 views

Theme setting to change block position (region)

i want to create a theme setting to change blocks position(region) for ex. option_1 block_branding-> region_top block_main_menu-> region_menu option_2 block_branding-> region_branding ...
3
votes
1answer
27 views

Changing theme in Drupal 8 via drush in the command line

In drupal 7 I used to just do a drush vset theme to change the theme in the command line, but that doesnt work in drupal 8 anymore. How would one change the theme in the command line for drupal 8 ...
0
votes
0answers
26 views

Modifying the background in Omega Kickstart theme

I would like to change the background image of my cart build using drupal commerce. I am using omega commerce theme. how can I achieve this? I tried it in the site settings. Couldn't find any option ...
1
vote
1answer
31 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 ...
0
votes
0answers
21 views

Default value for form_system_theme_settings_alter

I'm trying to set some theme settings, and I can't figure out how to have my settings get their default value, which should be obviously the currently set value. Here's an example: $form['...
1
vote
2answers
55 views

Install without Bootstrap CDN

I have the theme Bootstrap CDN 3.3.6 installed on my site and I use the appearance "Journal". How not to use the CDN maintaining the appearance "Journal" ? Thank you I download on Bootstrap http://...
1
vote
1answer
28 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
1
vote
0answers
21 views

Upload button missing in the setting page of the theme

I have been searching for an answer to my question on this site but found nothing. The "Upload" Button in setting page of theme just disappeared and I cannot save any picture until click the "save" ...
1
vote
1answer
41 views

how to disable breadcrumbs for certain pages

How can I just disable breadcrumbs for certain pages on drupal 8? There is a module for this on d7, is it easy in D8?
0
votes
0answers
19 views

Make image permanent in theme settings

I'm trying to add a managed_file field to my theme settings form in a Drupal 8 theme. I can successfully add an upload field using below: $form['headerimage'] = array( '#type' => '...
0
votes
0answers
8 views

Reference Error For Nexu Galleria (slideshow not working)

The slide show on this theme is not loadng. I've been gettting the following message. ReferenceError: Galleria is not defined But its clearly there. The rotator doesnt work.
1
vote
1answer
47 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 ...
0
votes
0answers
6 views

Radix Theme: Block id missing after upgrading from rc-4 to 3.3

The id's of all blocks disappeared after I updated radix theme from rc-4 to 3.3. I have several css that use the ids of the blocks. Please help! Thanks!
1
vote
0answers
125 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 ...
1
vote
1answer
78 views

How to change active link css class (is-active)

What the best way to change css class for an active link from 'is-active' to (in my case) 'active'? Also, need I really to replace it or to append my class? I know the 'is-active' class is hard-coded ...
1
vote
2answers
34 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 ...
0
votes
1answer
122 views

How to assign blocks to particular regions on theme install in Drupal 8?

Drupal 8 provides some blocks by default. Eg. Site Branding, Main Navigation, Powered by Drupal, Search etc. I have created a theme that has Site branding & Main Navigation named regions in which ...
0
votes
0answers
49 views

Drupal Admin Toolbar style disappear

I am making a custom theme for my drupal 8 site and i found that when logged in, the toolbar styling is broken. I did not include any base theme, and when i include base themes, it does not change and ...
1
vote
1answer
36 views

Flexslider JS not Loading [closed]

Using the Nexus theme, I'm getting the following error when using the theme rotater. "The History Plugin requires Galleria version 1.2.5 or later." Updated and its still busted. http://www....
1
vote
0answers
8 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 ...
2
votes
2answers
471 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 ...
0
votes
1answer
113 views

Custom submit handler for theme settings form

I am creating a new D8 theme and having slideshow functionality in it. For slideshow, we have title, description and image field in the theme settings form. I am able to alter the theme setting form ...
0
votes
1answer
38 views

Is there an easy way to adjust the block layout?

I have menus that are set to Sidebar First in the Bartik theme. When the screen size decreases, those menus are shown below the main page content. Which file in a copied version of the Bartik theme ...
1
vote
1answer
72 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
756 views

How do I save a file with managed_file in a theme?

I'm developing a theme that it requires to have a header image in the front page so I have this. casper.theme function casper_form_system_theme_settings_alter(&$form, &$form_state) { $form['...
0
votes
1answer
110 views

How to get managed_file value url?

I'm trying to add a front page image as part of the theme setting. And so far I'm able to upload the image; however, I need to be able to get this in preprocess function so I can use the in my ...
0
votes
1answer
28 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 ...
0
votes
2answers
22 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
1answer
35 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
2answers
103 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 ...
2
votes
0answers
41 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 ...
0
votes
1answer
20 views

Can you retrieve the Omega breakpoint settings?

As the title suggests, is it possible to retrieve the Omega breakpoints you set in the settings for your subtheme via any kind of function or call? Like the ones from the picture.
0
votes
2answers
50 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?...
0
votes
0answers
16 views

managed_field from theme in Domain Access

I created custom theme with some additional settings in it. Everything works fine when I change theme settings globally, but when I try to remove managed_file field's file (image) in the theme ...
1
vote
1answer
54 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 ...
1
vote
1answer
484 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
60 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
65 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
76 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
52 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
1answer
20 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['...
1
vote
1answer
98 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....
1
vote
3answers
232 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 ...
0
votes
0answers
51 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
1answer
27 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 ...
1
vote
0answers
132 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
1answer
318 views

How to set the file status of files uploaded through Drupal 7 theme settings to permanent

I have been trying for a week to get image files uploaded to a Drupal server through the use of "managed_file" theme settings to remain on the site longer than the default 6 hours. I have visited the ...
2
votes
1answer
215 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
2answers
346 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
1
vote
0answers
47 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 ...