Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Changing an uneditable region to editable

New Here ,
Nov 03, 2017 Nov 03, 2017

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?

Views

334
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 03, 2017 Nov 03, 2017

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...

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 03, 2017 Nov 03, 2017

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.

https://alt-web.com/Images/DWT-EditableTagAttribute.jpg

Then in Child pages spawned from your Template, you can Modify the BODY class name to match your other site pages -- about, contact, etc...

https://alt-web.com/Images/DWT-Editable-attributes2.jpg

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 03, 2017 Nov 03, 2017

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines