Skip to main content
2 of 2
edited tags
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Overriding region theme file for user profile pages

I am on D7 using Omega as a base theme. The <h1> tag of my theme can be found in the region--content.tpl.php theme file.

But I want to override this theme in one specific situation: on the user profile pages, I don't want the title to be set on region--content.tpl.php. I will take care of the title on the user-profile.tpl.php theme file. So what I want is a theme file that will override the custom default region theme file in the specific situation where user profiles are being viewed. That theme won't have a title set in it.

I have tried creating specific themes called region--content--user.tpl.php and region--content--user-profile.tpl.php, but they didn't override the default region--content.tpl.php theme. Any ideas? Thank you.

Marcos Buarque
  • 1.8k
  • 2
  • 18
  • 33