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;
}

2 Answers 2

8

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

0
1

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

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.