Copy link to clipboard
Copied
I created a site based on a template that I created
The sidebars, header, and footer were unedible
I realized after I created it that I wanted to change the header background for each site
I went to the dwt page and changed the header to edible
It showed that that region is edible
The code now looks like this:
<header class="header"><!-- TemplateBeginEditable name="EditRegion5" -->EditRegion5<!-- TemplateEndEditable --></header>
However, when I go into that region to change the background in a child page it says that it is blocked from making the change by the template
How do I make the header edible for all of my pages?
Copy link to clipboard
Copied
perhaps that I miss what you mean... but if you just want to change the background header from child to child... don't use an editable region for such a purpose...
one good practise for that is to use a CSS signature... give a class to the body, different on each child... and then change the backgroung using CSS
personnaly I use a template variable for editing the child signature... if that fit your needs let me know and I will send you the code snippet...
Copy link to clipboard
Copied
An Editable Region is for unique content on Child pages. In most cases, you do not want your sitewide header to be different so it should NOT be inside an Editable Region.
If you want to change the background on every page, you should do that in your sitewide stylesheet.
.home header {background: black}
.about header {background: green}
.contact header {background:red}
In your Template.dwt, you must add an Editable Tag Attribute of CLASS to your BODY tag. See screenshot.
Then in Child pages spawned from your Template, you can Modify the BODY class name to match your other site pages -- about, contact, etc...
Copy link to clipboard
Copied
yep that is one way,
personnally, I simply add a avriable in the dopcument <head>
<!-- TemplateParam name="heardertype" type="text" value="defaultclasstoapply" -->
and on the appropriate tag
<body class="@@(heardertype)@@">
then one can easly modify the class, for each child, from the templates properties dialog box