if specific content type add hide content css To create a Drupal block module that includes a CSS file to set .node__content to display: none; , you will need to follow several steps. This involves creating a custom module, defining a block within that module, and adding a CSS file to the block. Here's a step-by-step guide to achieve this in Drupal (assuming you are using Drupal 9 or Drupal 8): Step 1: Create the Module Folder and Files Create a new directory for your module in the modules/custom directory of your Drupal installation. For example, name your module hide_node_content . Inside your hide_node_content directory, create two files: hide_node_content.info.yml hide_node_content.module Create a src/Plugin/Block directory inside your module folder for your block plugin. Step 2: Define the Module Info File Add the following content to hide_node_content.info.yml : name: 'Hide Node Content Block' type: module description: 'Provides a block ...
留言
發佈留言