1

Let's say, I have a footer where I want to show a simple text not menu or link just a simple block of text. So, since it's neither a page, an article or block ... is there any way to create a text and show it somewhere in D8?

2
  • Why wouldn't it be a block?
    – mvdgun
    Jul 3, 2017 at 12:46
  • It's a text. I thought block is for something structural.
    – hidar
    Jul 3, 2017 at 12:55

1 Answer 1

2

Blocks can be used for many things including showing simple texts. Go to /block/add and create a block. Here you can provide a description and some body text. After saving your block you are redirected to the block configuration where you can place it.

By placing the block Drupal creates a block instance. For more information please see: https://www.drupal.org/docs/8/core/modules/block/overview

2
  • Is there a way to specifically place a block inside a twig template? Say, in my footer.html.twig can I create a div and call that block instead of doing {{ page.footer }}
    – hidar
    Jul 3, 2017 at 13:01
  • Yes that's possible, see: drupal.stackexchange.com/questions/153184/…
    – mvdgun
    Jul 3, 2017 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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