I am working with a fairly old help file, imported from (I think) Robohelp 7. All the pages are topped with a banner that uses 'Heading 1'. I need to change the colours of 'Heading 1' to match corporate policy. I have updated the relevant CSS file. I have updated all pages to make sure they are referencing the correct CSS file. On pages that I have written since I took on the task, the new colours are applied as I would hope - albeit at design time, with a strange pattern of diagonal lines on the background colour.
The problem is with the older pages. Whilst they also use 'Heading 1', they appear to have a font attribute placed over the top of the embedded style. This means they do not inherit the white lettering of my new style, they remain black, which renders them unreadable against my new background colour. If I right click on an affected heading, I can 'remove attribute' and the black text turns white as per the CSS. However there are far too many pages thus affected for me to address them all.
Is there a way to remove all font attributes from anything having the 'Heading 1' style?
You to remove the inline styling use multi-file find and replace. Backup first.
Thank you for the response, I didn't know what I was looking for in the HTML really but I have now figured it out thanks to your nudge. In this example the title "Topics" is wrapped in its own inline style and then with a tag for Heading 1:
<h1 id="H11" style="position: relative;"><font style="font-size: 14pt;"
As you can see RH has broken the text over two lines. What you cannot see in the snip is a number of tab characters which are also present. I have figured out that if I remove the font style tag, RH will clean up the </font> for me. Which is helpful. However there could be up to about 1,000 of these to deal with so I need to use Find and Replace as you suggest. However... I am struggling to get F&R to work on a string that contains a carriage return. Can this be done?
Search has a Starts With and Ends With feature. You need to be careful with it so back up first.
That sounds promising, I will give it a go. Thanks!