2

I have created a custom block, but there is no option to add content or any body part.

enter image description here

How do I add content to a block?

  • 1
    In the custom block library edit the block type and attach fields to it, just like you would to an entity. – user21641 Dec 2 '15 at 9:27
  • 1
    you need to add a body field to your block. Blocks are now like nodes in D7, where you can add fields to them. – No Sssweat Dec 2 '15 at 9:33
  • Ok I wil try to add fileds. – Kamal Oberoi Dec 2 '15 at 11:41
2

I think you first want to define the fields of a block content type. You'll find this at this url:

www.mysite.com/admin/structure/block/block-content/types

In the admin UI this is not so easy to find like the node content type at the top level of the admin structure. The block content types are two or three levels deeper in the block layout. To access above link make sure you have the Custom Block module enabled.

0

You may want to take a look at Drupal 8 custom block with html and javascript

I am able to get it working with the response provided by @Aram Boyajyan

0

To add a custom block, you need to enable Custom Block module which allows the creation of custom blocks through the user interface. Then in Structure, Block layout, when placing a block, you should have access to the new option Add custom block which should allow you to create blocks with HTML content (at the first time, you'd have to create a new block type for it).

Drupal 8, /admin/structure/block, Structure, Block layout, custom block

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.