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!
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
Comment #1
andregriffin commentedTo 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.
Comment #2
halloffame commentedI was able to do it through CSS. This one seems much better!
As always... much thanks Andre'!
Comment #3
halloffame commentedComment #4
andregriffin commentedYes, 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.