# Page header now not working in RW6

**URL:** <https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081>\
**Category:** RapidWeaver Classic\
**Created:** [May 9, 2018, 11:30am UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081 "2018-05-09T11:30:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrisBCT](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/crisbct/32/1995_2.png) [@CrisBCT](https://forums.realmacsoftware.com/u/CrisBCT)\
**Post date:** [May 9, 2018, 11:30am UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/1 "2018-05-09T11:30:19Z")

</div>

Hi,

The custom header code created many years ago for my [LifeStrategies.net](http://LifeStrategies.net) site doesn’t work now I’ve upgraded from RW5 to RW6 and Stacks 3. See any page on the site at [www.LifeStrategies.net](http://www.lifestrategies.net/)

I’m actually trying to update the info on page [`www.LifeStrategies.net/guns-deter-crime/ `](http://www.lifestrategies.net/clarity/right-response/guns-deter-crime/)

The header code that used to work in RW5 for this page is:

```
    <div class="bp_headerWrap"><div class="bp_LifeStrategiesClick"><a style="display:block; width:378px; height:68px; margin: border:0px; z-index:5; position:absolute; left: 224px; top: 28px;" href="http://www.lifestrategies.net" title="www.LifeStrategies.net"></a></div>
<div class="bp_headerPageTitle">Defensive gun uses</div>

<!-- 
	Begin Social Media Buttons & Google Search Box 2013/02
//-->

<div>
<div style="position:absolute; margin-left: 20px; margin-top:170px; width:100%; text-align:left"><div style="">

<!-- 
	start load Facebook button
//-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<a href="http://www.facebook.com/StrategiesAndOutcomes" target="_blank"><img src="upload://k0BihNTITkWth8Qdjc6jBb9wRod.png" align="left" style="margin-right: 1px;" border="0" title="Life Strategies at Facebook"></a>
<div class="fb-like" style="vertical-align:top;" data-href="http://www.facebook.com/StrategiesAndOutcomes" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false" data-height="40"></div>
<!-- 
	end load Facebook button
//-->

&nbsp;

<!-- 
	start load Twitter Button
//-->
<a href="https://twitter.com/lifestrategiesn" class="twitter-follow-button" data-show-count="false" data-lang="en" data-show-screen-name="false" data-size="large">Follow</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<!-- 
	end load Twitter Button
//-->

&nbsp;

<!-- 
	start load StumbleUpon Button
//-->
<script language=JavaScript>
document.write ('<a href="');
document.write('http://www.stumbleupon.com/submit?url='+document.URL+'&title='+document.title.replace(/ /g,'+')+'">');
document.write ('<img border="0" src= "http://www.lifestrategies.net/imagez/stumble-button.png" title="StumbleUpon" ></a>');
</script>
<!-- 
	end load StumbleUpon Button
//-->

&nbsp;

<!-- 
	start load Google +1 async button
 -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
<!--
       end load Google +1 button
 -->

<!--
       start use Google +1 button
 -->
<g:plusone size="standard" annotation="bubble"></g:plusone>
<!--
       end use Google +1 button
 -->

</div></div>

<!-- 
	start load Google Search box 
//-->
<div class="bp_googleSearch">
<div id="cse-search-form" style="width:100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load('search', '1', {language : 'en', style : google.loader.themes.V2_DEFAULT}); 
google.setOnLoadCallback(function() {
    var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl(
      '013919123775209601095:ndfgjjzuqeq', customSearchOptions); 
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    var options = new google.search.DrawOptions();
    options.enableSearchboxOnly("/search-results/index.php");
    customSearchControl.draw('cse-search-form', options);
  }, true);
</script>

<style type="text/css">
  input.gsc-input, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus {
    border-color: #D9D9D9;
  }

  input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus {
    border-color: #4d7d8d;
    background-color: #7cadbd;
    background-image: none;
    filter: none;
  }</style>

</div>

<!-- 
	end load Google Search box 
//-->

</div></div>

<!-- 
	end composite header 2013/02
//-->

```

What’s wrong with this? How do I change it to get it working in RW6 so I can publish this page?

Thanks in advance for any and all help.

warm regards,  
Cris  
Wednesday, 2018/05/09

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [May 9, 2018, 6:47pm UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/2 "2018-05-09T18:47:22Z")

</div>

To show code on the forumn;  
paste code in  
select all of it  
click the code button (see image)

 ![ZZ41946385](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/3/33be39e24337cdf39b47a03c4da6f34791c17820.jpg)

---

<div class="post-metadata">

**Author:** ![CrisBCT](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/crisbct/32/1995_2.png) [@CrisBCT](https://forums.realmacsoftware.com/u/CrisBCT)\
**Post date:** [May 9, 2018, 7:53pm UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/3 "2018-05-09T19:53:56Z")

</div>

Thanks, Scott.

I’ve now amended first post.

Cris  
ps. The popup description on that button says “Pre-formatted text” which I didn’t know meant “show uninterpreted code”.

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [May 9, 2018, 8:00pm UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/4 "2018-05-09T20:00:46Z")

</div>

Okay, so what happens when you add the code?  
Where are you adding it?

---

<div class="post-metadata">

**Author:** ![CrisBCT](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/crisbct/32/1995_2.png) [@CrisBCT](https://forums.realmacsoftware.com/u/CrisBCT)\
**Post date:** [May 9, 2018, 8:30pm UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/5 "2018-05-09T20:30:31Z")

</div>

The code worked properly and was published in RW5 and can be seen on my page [www.LifeStrategies.net/guns-deter-crime](http://www.lifestrategies.net/clarity/right-response/guns-deter-crime/)

I’m just trying to add/edit one paragraph at the top of the page, but the header is no longer producing the same effect. See

 ![DGU%20page%20edit](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/a/a5bbe0751ba05ea195fd2fe5acaa9ac7f0422c61.png)!

 ![DGU%20page%20preview](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/6/6bf355ab6a8f00a79730988261649a0bb1cfdeb6.png)

As you can see, the preview is very different from the existing RW5 published page. I need it to be the same:

 ![DGU%20published%20page](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/7/7fbe78a44d36cf41c7ed488e0ca7baf44088ed28.png)

Any ideas how to resolve this issue would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![thang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/thang/32/303_2.png) [@thang](https://forums.realmacsoftware.com/u/thang)\
**Post date:** [May 10, 2018, 9:47pm UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/6 "2018-05-10T21:47:16Z")

</div>

There is some CSS on the page that is setting the h3 text-align to center. You may be able to change it to align left in your theme or stack settings.

You can put this in the CSS sidebar and it should change it to as it was with the left alignment. You may or may not need the !important.

h3 {  
text-align: left !important;  
}

---

<div class="post-metadata">

**Author:** ![CrisBCT](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/crisbct/32/1995_2.png) [@CrisBCT](https://forums.realmacsoftware.com/u/CrisBCT)\
**Post date:** [May 11, 2018, 9:32pm UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/7 "2018-05-11T21:32:24Z")

</div>

Thanks David,  
I’ve now added text-align: left to the h3 css and it’s now correctly aligned.

But h3 was fine before but is now incorrectly aligned on every page, so I guess I must add this to every page’s css separately

---

<div class="post-metadata">

**Author:** ![thang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/thang/32/303_2.png) [@thang](https://forums.realmacsoftware.com/u/thang)\
**Post date:** [May 11, 2018, 9:40pm UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/8 "2018-05-11T21:40:55Z")

</div>

If you want it to work on every page put it in Settings \> Code \> CSS. Glad it worked for you.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [June 11, 2018, 7:42am UTC](https://forums.realmacsoftware.com/t/page-header-now-not-working-in-rw6/20081/9 "2018-06-11T07:42:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
