@font-face not working

I can not understand, is it me or is it drupal or is it some cache or what....

I can't make @font-face working in Drupal, in Bootstrap themes stylesheet....

whenever I write

@font-face {
font-family: 'Source Sans Pro';
font-weight: normal;
font-style: normal;
font-display: swap;
src: local('Source Sans Pro'),
url('/fonts/SourceSansPro-Regular.woff2') format('woff2'),
url('/fonts/SourceSansPro-Regular.woff') format('woff');
}

Trusted host setting

Hello,

I've got my drupal site at drupal8.local.com and I get the error :

Trusted Host Settings

Not enabled

The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.

so I've tried:

Extend OptionsSelectWidget by adding new fields

Hello,

I don't know if it's possible, but I try to extend the OptionsSelectWidget widget to add additional field(s).

My goal is to have only a widget, not a new fieldType + widget + formatter, because I want to change behavior of an existing field added by contribution module.

I created a new widget like this :

Adding Libraries to Drupal

Hi,

I am installing AMP module into my Drupal 8 installation and it requires AMP PHP Library. How can I add it manually without using composer?

Local install Drupal 8 on macOS outside htdocs root?

I manually installing Drupal 8.6.15 under macOS (10.14.4) with existing MacPorts installations of apache 2.4, mysql 5.7, and php 7.3. Here's how I installed, under my administrator account:

First, I prepared by editing my apache httpd-vhosts.conf file so as to include:

Getting P tags - even though 'convert line breaks' is OFF.

I've got a custom block in Drupal 8, that I'm trying to get a little custom css select list. If I paste everything in, save the page, and view  the site... it works. The field is set to Full HTML.

BUT, the moment I make any edit to that block, i get P tags. In fact, it's not even just putting them in line breaks. If I remove all line breaks, something is adding the line breaks back in and wrapping in p  tags. 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x