A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
0answers
40 views

How to display Site Name using Custom Block Layout at left corner of header, somehow it is displayed at right side

I am using Drupal 8.2.6, and instead of showing sitename from Configuration Parameter, trying to disply it with custom block. Custom block will use a png file with specific font design for site name. ...
2
votes
1answer
450 views

Print user uploaded logo in twig template

How can I print a user uploaded logo (via the theme appearance UI) in a twig template? For example, in block--system-branding-block.html.twig we can use Available variables: - site_logo: Logo for ...
1
vote
1answer
4k views

Webform file attachment

I've been struggling with an issue today that I just can't seem to figure out. I have a webform that includes a file upload that I want to email upon submission. The email sends correctly (using ...
0
votes
1answer
475 views

How to put icon in field label? [duplicate]

Is it possible to add an icon in front of a field name? I have a field name called Tel and would like to put a phone icon in front of it? I've searched for a while and can't seem to find an answer ...
3
votes
2answers
2k views

How to change the site logo in a preprocess function?

I want to set my site logo programmatically, so that I can change the logo based on URL args. I am able to set the $variables['logo_img']['#uri'] with the following code in MYTHEME.theme but still ...
3
votes
2answers
463 views

How to theme back end forms created by a custom module?

I want to be able to theme a custom form I create using a custom module that builds a form. The form is created programmatically using the code below: public function buildForm(array $form, ...
0
votes
1answer
879 views

Set permanent status for managed_file in theme settings

I'm creating some Drupal 8 theme and I need some additional settings for it. So, I have to add some managed_file field in theme settings. I have theme-settings.php file where I define this field and ...
1
vote
1answer
235 views

Remove Parent Theme Settings From Child Theme

I'm in the middle of creating a custom theme using the Bootstrap theme as it's parent. As you may, or may not be aware, the Bootstrap theme comes with lots of useful theme settings. These are great, ...
0
votes
1answer
252 views

Notice: Undefined index: theme_settings in theme-settings.php

I'm creating a custom theme settings and got error this two errors Notice: Undefined index: theme_settings in cocoa_form_system_theme_settings_alter() (line 411 of F:\DEV\SITES\DEV\cocoa\sites\all\...
0
votes
1answer
180 views

Unable to Edit Main Navigation Drupal 8

I installed a custom theme called StartupGrowth. At the moment, I am trying to edit the main navigation. When I go to Structure->Menus->Main Navigation and disable the unneeded entries, they do not ...
0
votes
1answer
119 views

Local install of live site looks different

Localhost site looks different than live site. Drupal 7.37 > 7.5 (Commons), viewed in Chrome on Mac OS X. Prep Steps: installed a clone of the website from an outdated repository on my local ...
0
votes
1answer
154 views

Adminimal template and CCS adjustments and priority of css files?

In Drupal 7 i use the adminimal template for some pages. I want to adjust some element and added therefore a SASV file into the theme. Now some elements I can override but some elements (like table ...
0
votes
1answer
92 views

filtered_html in theme-settings.php

In my theme-settings.php i want to set text format to 'filtered_html' and display in page.tpl.php. I used this code to display text area: $form['options']['description'] = array( '#type' =&...
0
votes
2answers
376 views

How to configure all the block of the theme?

I have install this drupal 7 theme http://demo.zymphonies.com/free-theme/multipurpose-zymphonies-theme/ But its give me only the outlook of the theme like below image Now i want to add user ...
2
votes
3answers
885 views

How do i get the all the regions available in the current theme programatically?

I want the list of the names of all regions available in the current theme in drupal 8. How to do this ? And is it possible to get the list of the blocks placed on that region ?
1
vote
1answer
50 views

Use administration theme for verified users when adding or editing content

I'm having a problem with the administatration theme. I want verified users to see the administration theme when they are adding or editing content. Right now only the admin user sees the ...
1
vote
1answer
412 views

permanent image theme setting

Hy, I'm trying to display an image which has been set in the theme settings. This file should be stored permanently. I'm using drupal 8 and based on the information I found online, this is what I got: ...
2
votes
1answer
2k views

How to change the default logo size in the OpenChurch theme?

I'm trying to upload an image for the logo with a slightly higher resolution than the default logo, but I don't find any way to change the default logo size in the OpenChurch theme. I don't need the ...
0
votes
4answers
6k views

How can I display site logo, name and slogan?

how can i show site logo, name and slogan Separately in custom area in my site theme, I now use this code to display theme, buts this code don't allow me to edit each of them Separately. {{ page....
1
vote
1answer
115 views

How to make different slogan for each content type?

I have several content types, I want the slogan that shows up on the page to be different for each slogan. Is this possible?
3
votes
4answers
1k views

Language-dependent logo

How can I use a custom logo image in Drupal 8 that is language dependent? There does not seem to be an appropriate setting in the Content and Language Translation configuration page.
1
vote
1answer
393 views

How to create a 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 ...
5
votes
1answer
3k views

Changing theme in Drupal 8 via drush in the command line [duplicate]

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 ...
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 ...
0
votes
1answer
287 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
1answer
83 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
636 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" ...
3
votes
1answer
2k views

Simplest way to get a full set of favicons and touch icons

So you've generated a big batch of favicons, touch icons, tiles and whatever to cover the full range of files a broswer might look for, and the generator you used has helpfully given you a whole lot ...
3
votes
1answer
2k 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?
2
votes
1answer
97 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!
1
vote
1answer
178 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 ...
6
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 ...
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

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
110 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 ...
9
votes
2answers
2k views

How to assign blocks to particular regions on theme install?

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 ...
1
vote
0answers
16 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 ...
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 ...
0
votes
0answers
323 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 ...
1
vote
1answer
1k 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
112 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 ...
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....
3
votes
4answers
3k 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 on the front page, so I have this. casper.theme function casper_form_system_theme_settings_alter(&$form, &$form_state) { $form[...
0
votes
2answers
2k 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 ...
1
vote
0answers
157 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 ...
0
votes
1answer
27 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
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 ...
16
votes
9answers
16k views

How do I set the theme logo?

How can I set the logo in my custom theme in Drupal 8? I can see that Drupal looks for the logo.svg file. I have a PNG logo.png file that I used in Drupal 7 and I would like to re-use it. I cannot ...
1
vote
1answer
250 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' ...