Knowledge headings and formatting

Tilly Penn
Tera Contributor

When I started out on this journey of creating Knowledge Articles, I looked at the format of our templates and decided that, as H1 was actually bigger than the Title of the article, I encouraged my authors to use H4 for headings.  This may have been a mistake because now I can't use TOCs (they use H1 thru H3 only).  
Where am I going wrong?  Should I ask the Developers to change the size of the H1 font?  Is that what everyone else has done?  You can see from the snipimage below what I mean about sizes (which I've done in the style of a menu, but we are not a restaurant!).      H1 is huge, and bigger than the article title.  

SnipImage.JPG



6 REPLIES 6

vhindbo
Tera Contributor

Have you tried defining custom styles in your articles? I used to, but it no longer works since we moved to Tokyo (not sure if the issue is Tokyo or our local configuration). Here's an example of the code I would add to the top of each article:

 

<style>

h1 {
font-family: arial;
font-size: 20px;
font-weight: bold;
margin-bottom: 10px;
padding-top: 15pt;
}

h2 {
font-family: arial;
font-size: 16px;
font-weight: bold;
margin-bottom: 10px;

padding-top: 15pt;
}

h3 {
font-family: arial;
font-size: 12px;
font-weight: bold;
margin-bottom: 10px;
padding-top: 10pt;
}

</style>

Style tags still work in Tokyo, with a known workaround.  I believe a fix is coming in a future patch.  

 

If you want to use <style> tags, you must first add the following before the opening <style> tag:

<p style="display: none;>&nbsp;</p>

Thank you! I was so annoyed when I could no longer use my custom styles.

I guess we could do this, but as I have potentially many authors (with varying commitments and interest), I do not think they would consistently add code to an article.