Skip to main content
Known Participant
June 22, 2009
Answered

RH messing up my Header/Footer

  • June 22, 2009
  • 2 replies
  • 1845 views

Ok I hope someone can answer this.

My headler is:

<div id="header">
    <div id="header_inner" class="fixed">
        <div id="logo">
            <h1><span>Title Page</span></h1>
            <h2>Company Name</h2>
        </div>
    </div>
</div>

But when I save it and then open up a page again, the header changes to:

<?rh-region_start id="header" ?>
    <div id="header_inner" class="fixed">
        <div id="logo">
            <h1><span>Title Page</span></h1>
            <h2>Company Name</h2>
        </div>
    </div>
<?rh-region_end ?>

Then the page is all messed up unless I fix it again and save before I generate.

The same thing happens with my footer HTML.


<div id="footer" class="fixed">
    Copyright &copy; 2009 Company All rights reserved.
</div>

Turns to:

<?rh-region_start id="footer" class="fixed" ?>
    Copyright © 2009 Company All rights reserved.
<?rh-region_end ?>

Can someone help me with this please?  I built the whole Help program and it works flawlessly except for this annoyance everytime I open a page to edit.

This topic has been closed for replies.
Correct answer MergeThis

Here is my project.  Try to open up a file in RH like stated in the original post....past in:

<div id="header">
    <div id="header_inner" class="fixed">
        <div id="logo">
            <h1><span>IMPACT Help</span></h1>
            <h2>By ESSENCE Healthcare</h2>
        </div>
    </div>
</div>

then see if it changes it back when you go back to Design view and then back again to Code view.


I suspect that you're co-opting one of RH's system classes by using "header" as your div class.

I just added the word "top" in a true header section (View > Header), and got this code. Note RH's use of type="header" as its rh-region class ID.

<body>
<?rh-region_start type="header" style="width: 100%; position: relative;" ?>
<p>top </p>
<?rh-region_end type="header" ?>
<h1>test</h1>
<p>Type topic text here.</p>
</body>
</html>

I'd suggest using a different class title instead of "header" (topline, firstline, etc.?).

Good luck,

Leon

2 replies

June 22, 2009

Am I the only one wondering what exactly is messed up?

Zachary, you do indeed find that your code has changed - but does it impact the output in a way you don't want?  Did I miss something about how the topics look after you compile?

If the output is acceptable, I would move on to bigger and better things, and let this little intrusion into your code just slide on....ain't no big thing.

zacharybAuthor
Known Participant
June 22, 2009

No, IT IS messing up my layout.  The CSS can't read the div id when Robo help changes it.  When I correct it and save it then generate, the layout is fine.  But if I ignore the code that RH has changed, the layout is all messed up.

So everytime I open a file...robohelp has AGAIN changed the code for the header and footer I posted above.  So I THEN have to go back and correct it, and then save it before I generate again.

I guess this is not an everyday problem.  I was hoping it was and something that could have been fixed.

I'm thinking RH doesn't work and play well with external CSS files.

zacharybAuthor
Known Participant
June 22, 2009

Here is my project.  Try to open up a file in RH like stated in the original post....past in:

<div id="header">
    <div id="header_inner" class="fixed">
        <div id="logo">
            <h1><span>IMPACT Help</span></h1>
            <h2>By ESSENCE Healthcare</h2>
        </div>
    </div>
</div>

then see if it changes it back when you go back to Design view and then back again to Code view.

Captiv8r
Legend
June 22, 2009

Hi there

The issue seems to be with RoboHelp messing with your code. I might suggest you use a different HTML editor with RoboHelp HTML.

Click Tools > Options. There you may define an editor you have available.

Cheers... Rick

zacharybAuthor
Known Participant
June 22, 2009

I actually wrote all the code in RH.  CSS in Notepad and transfered to RH.