Hello!

How will I remove H2 on selected pages specifically www.mysite/user/*? I want to get rid of that 'User account' title in register, login and forgot pass page. Thank you!

Comments

andregriffin’s picture

To remove the titles on those user pages, copy your page.tpl.php and name it page-user.tpl.php. Open that file and remove the line that says:

if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;

Upload that file to your framework directory. If it doesn't seem to work for logged out users, you may need to clear the cache.

halloffame’s picture

I was able to do it through CSS. This one seems much better!

As always... much thanks Andre'!

halloffame’s picture

Status: Active » Closed (fixed)
andregriffin’s picture

Status: Closed (fixed) » Fixed

Yes, hiding elements entirely with css is not the best idea for accessibility reasons. You can use .tpl files to edit particular pages/nodes/node types/blocks as well.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.