5

I would like to hide the block title when customizing a block, but I didn't find any solution on the internet, Can you please help me?

function custom_theme(&$existing, $type, $theme, $path) {

  $hooks['user_login_block'] = array(
    'template' => 'templates/user_login',
    'render element' => 'form',
    // other theme registration code...
  );
  return $hooks;
}
8

You can do it easily directly in the configuration page of block by adding <none> in the title field setting.

| improve this answer | |
1

You can also hide it by setting the CSS "display" property to "none."

| improve this answer | |

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.