drupal1 Min Read

Drupal 8 - How to hide help link About text formats and text format guidelines

Gorav Singal

April 25, 2020

TL;DR

Disable the text format help links in Drupal 8 by adjusting the field widget settings to hide the format selection and guidelines from end users.

Drupal 8 - How to hide help link About text formats and text format guidelines

Problem

In drupal textarea field, it was always a pain to see the two links:

  • Text format showing list of available format, even if user is allowed to use one format only
  • And a link of About Text formats

Drupal text format

Solution

Drupal 8 provided an easy but hidden way to hide this. Do following steps:

  • Goto your content type
  • Click on Manage Form Display
  • For example, body is the field
  • Click on settings icon button on right hand side of body field
  • A small form will open up

Drupal text format

  • Check on option - Hide the help link About text formats
  • Check on option - Hide text format guidelines
  • Save the content type
  • Clear cache and open the form

See the final form

Drupal text format

Perfect Solution

Note: You did hide the two unwanted options in the form. But, you can still see the drop down of formats. This should be fine for most of the users. But, I did not want this. I did not want to confuse my users.

Install module Allowed Formats Do following steps:

  • Goto your content type
  • Edit the field, example body field
  • In edit form, you will see a section of Allowed Formats

Drupal text format

  • Select your desired format. I selected Full Html
  • Save the form
  • Open your form, and you will see only your text area.

Drupal text format

Hope it helps.

Share

Related Posts

Drupal - Using Field Groups for Visually Separating multiple field set (No Coding Required)

Drupal - Using Field Groups for Visually Separating multiple field set (No Coding Required)

Introduction You are having a form having multiple fields. When you render a…

Drupal 8 - Advanced Usage of the Paragraphs Module

Drupal 8 - Advanced Usage of the Paragraphs Module

Introduction In my previous article, I explained How to have set of fields and…

Drupal - How to add multiple form fields with a single button click (No Coding Required)

Drupal - How to add multiple form fields with a single button click (No Coding Required)

Introduction Drupal is an awesome CMS. Drupal content type form, allows you to…

Drupal 8 - How to Theme Form and its Fields with reordering fields

Drupal 8 - How to Theme Form and its Fields with reordering fields

Introduction In this post, we will see how to theme form and its fields…

Drupal 8 - How to create a Page with admin access and create its menu entry in Reports (No Coding)

Drupal 8 - How to create a Page with admin access and create its menu entry in Reports (No Coding)

Introduction I needed a report page, where I wanted to have some information…

Drupal: How to detect country and redirect to country specific website by using Cloudflare

Drupal: How to detect country and redirect to country specific website by using Cloudflare

Introduction Assume you have a drupal website and using cloudflare. You are…

Latest Posts

AI Video Generation in 2025 — Models, Costs, and How to Build a Cost-Effective Pipeline

AI Video Generation in 2025 — Models, Costs, and How to Build a Cost-Effective Pipeline

AI video generation went from “cool demo” to “usable in production” in 2024-202…

AI Models in 2025 — Cost, Capabilities, and Which One to Use

AI Models in 2025 — Cost, Capabilities, and Which One to Use

Choosing the right AI model is one of the most impactful decisions you’ll make…

AI Image Generation in 2025 — Models, Costs, and How to Optimize Spend

AI Image Generation in 2025 — Models, Costs, and How to Optimize Spend

Generating one image with AI costs between $0.002 and $0.12. That might sound…

AI Coding Assistants in 2025 — Every Tool Compared, and Which One to Actually Use

AI Coding Assistants in 2025 — Every Tool Compared, and Which One to Actually Use

Two years ago, AI coding meant one thing: GitHub Copilot autocompleting your…

AI Agents Demystified — It's Just Automation With a Better Brain

AI Agents Demystified — It's Just Automation With a Better Brain

Let’s cut through the noise. If you read Twitter or LinkedIn, you’d think “AI…

Security Ticketing and Incident Response

Security Ticketing and Incident Response

The worst time to figure out your incident response process is during an…