{"id":3019,"date":"2022-10-31T09:48:29","date_gmt":"2022-10-31T07:48:29","guid":{"rendered":"https:\/\/dox.fi\/?p=3019"},"modified":"2022-10-31T09:48:30","modified_gmt":"2022-10-31T07:48:30","slug":"how-to-adapt-the-webhelp-template","status":"publish","type":"post","link":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/","title":{"rendered":"How to adapt the WebHelp template"},"content":{"rendered":"\n<figure class=\"wp-block-image alignwide size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"508\" src=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1024x508.png\" alt=\"\" class=\"wp-image-2993\" srcset=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1024x508.png 1024w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-300x149.png 300w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-768x381.png 768w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1536x761.png 1536w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-2048x1015.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><em>Demo content published as a WebHelp that was modified with a style sheet.<\/em><\/figcaption><\/figure>\n\n<p>One publishing format that <a href=\"https:\/\/dox.fi\/en\/systems\/dox-cms\/\"><strong>DoX CMS<\/strong><\/a> supports is <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a>. They are <a href=\"https:\/\/www.w3schools.com\/html\/\"><strong>HTML<\/strong><\/a> publications which are set inside a template that shows the table of contents together with one topic at a time. The template was originally made primarily for our internal use. As such, you must change many details with style sheets when you publish other documents in this format. I will show how to do this in this piece. I will also add this information in our user manual later.<\/p>\n\n<p>We have also outlined a more comprehensive solution for how users can edit their <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> templates. This solution will let you select the components that your <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> publications will include. For example, you ought to be able to use custom headers and footers like you already can with <a href=\"https:\/\/www.adobe.com\/acrobat\/about-adobe-pdf.html\"><strong>PDF<\/strong><\/a> publications. In this piece, I will only focus on the currently available methods that involve style sheets, though.<\/p>\n\n<p>Style sheets are based on <a href=\"https:\/\/www.w3schools.com\/css\/\"><strong>CSS<\/strong><\/a>. This piece is helpful mostly to those who have access to someone who can write style sheets. We can also write the required style sheets for our customers when they adopt the system or as a separately billed service.<\/p>\n\n<h2 class=\"wp-block-heading\">Default template<\/h2>\n\n<figure class=\"wp-block-image alignwide size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"508\" src=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/default-base-1024x508.png\" alt=\"\" class=\"wp-image-2988\" srcset=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/default-base-1024x508.png 1024w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/default-base-300x149.png 300w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/default-base-768x381.png 768w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/default-base-1536x761.png 1536w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/default-base-2048x1015.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><em>The cover page of the user manual for DoX CMS as a default WebHelp publication.<\/em><\/figcaption><\/figure>\n\n<p>The image above shows what the default template for <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> publications looks like. This image comes from the user manual for <a href=\"https:\/\/dox.fi\/en\/systems\/dox-cms\/\"><strong>DoX CMS<\/strong><\/a>. It shows all the components that can be changed with the methods that I discuss below. This components consist of<\/p>\n\n<ol class=\"wp-block-list\"><li>default identifiers,<\/li><li>the table of contents,<\/li><li>the content field,<\/li><li>the find field,<\/li><li>forward and back buttons, and<\/li><li>a default style.<\/li><\/ol>\n\n<p><a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> publications include a default style sheet that they use in addition to the style sheets from the style that you selected. You cannot change this style sheet directly. You can, however, change which values apply through other style sheets. Sometimes, such changes must involve the &#8216;!important&#8217; qualifier as the examples below show. You should make a separate style sheet for the changes related to <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a>. You can then use it together with other style sheets as a new style in <a href=\"https:\/\/dox.fi\/en\/systems\/dox-cms\/\"><strong>DoX CMS<\/strong><\/a>. Each style can include more than one style sheet.<\/p>\n\n<h3 class=\"wp-block-heading\">Inspect feature<\/h3>\n\n<figure class=\"wp-block-image alignwide size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"514\" src=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/inspect-1024x514.png\" alt=\"\" class=\"wp-image-2990\" srcset=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/inspect-1024x514.png 1024w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/inspect-300x150.png 300w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/inspect-768x385.png 768w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/inspect-1536x770.png 1536w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/inspect-2048x1027.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><em>The cover page of the user manual for DoX CMS and the browser&#8217;s sidebar after using the Inspect command.<\/em><\/figcaption><\/figure>\n\n<p>You can review the different parts of <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> publications and the previews for other publications with the <strong>Inspect<\/strong> command on your browser. When you click on a part of the view with the righthand mouse button and select this command, the browser shows the different parts of the view in its sidebar. When you select one of these parts, the browser also shows all the rules related to it in all active style sheets.<\/p>\n\n<p>This feature lets you see the identifiers for the different parts of the view and the rules that apply to them at the time. You can also make temporary changes to their style with the browser. You must still add all these changes separately to add them to new publications.<\/p>\n\n<h2 class=\"wp-block-heading\">Default identifiers<\/h2>\n\n<p>Because <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> publications were originally added for <a href=\"https:\/\/dox.fi\/en\/systems\/dox-cms\/\"><strong>DoX CMS<\/strong><\/a>&#8216;s user manual, the default template mentions DoX Systems. You can remove them and replace them with more appropriate pieces of text.<\/p>\n\n<p>There are two positions for default identifiers: at the bottom of the table of contents and in the upper right corner. The bottom of the table of contents says &#8216;www.dox.fi | \u00a9 DoX systems&#8217;. The upper right corner says &#8216;DoX Content Management System | DOX USER MANUAL&#8217;. You cannot change these pieces of texts direcrly but you can hide them and replace them with content that you add in a nearby position.<\/p>\n\n<p>How the default identifiers were replaced in the pictures across this piece is shown below:<\/p>\n\n<ul class=\"wp-block-list\"><li>You hide the default identifier in the table of contents when you do not show the p element in the .tocFooter section. When you then add a ::before pseudoelement to the .tocFooter section, it has the same position. You can change the content of this pseudoelement in a style sheet. Language identifiers also let you use different values for different languages in the same way as the title of note elements.<\/li><li>You can remove the default identifier in the upper right corner when you do not show the .documentHeaderTitle section. There is an empty section with the identifier .documentHeaderLogoWrapper next to it. You can put it in the same position as the default identifier and add content to it with a ::before pseudoelement.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>.tocFooter p {\n    display: none;\n}\n\n.documentHeaderTitle {\n    display: none !important;\n}\n\n.tocFooter::before {\n    content: \"\u00a9 Aperture Inc 2022\";\n    position: relative;\n    left: 50%;\n    color: white;\n}\n\n.documentHeaderLogoWrapper::before {\n    content: \"Aperture Inc | Glimpse the Future\";\n    padding-left: 80%;\n    white-space: nowrap;\n    color: white;\n    font-size: 1.5em;\n}\n\n.documentHeaderLogoWrapper {\n    display: flex;\n    flex-grow: 1;\n    align-self: flex-end;\n}<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Table of Contents<\/h2>\n\n<p>You can move the table of contents on the other side of the view or even on the top or at the bottom of it. You can also freely change the details of its style such is its color. The majority of such changes involve the same rules as changes to the table of contents in all publications. I discuss those unique to <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> publications below.<\/p>\n\n<h3 class=\"wp-block-heading\">Layout for the table of contents<\/h3>\n\n<p>How the table of contents was changed in the pictures across this piece is shown below:<\/p>\n\n<ul class=\"wp-block-list\"><li>I changed the icon for the table of contents in two ways. Only one of them shows in the pictures, though. I used the selector &#8216;.tocTitleWrapper h1 &gt; span:before&#8217; to do this. The content uses a value in the <a href=\"https:\/\/fontawesome.com\/v4\/icons\/\"><strong>Font Awesome<\/strong><\/a> icon font. The current template uses the free 4.3 version and its icons but we will update the the icon font to a newer version. The other option is to have no visible content and to change its background image to the icon of your choice.<\/li><li>I changed the backgrounds of the table of contents and its to an image and an accompanying color. The table of contens proper is inside the .documentTOCWrapper section and its title is in the .tocTitleWrapper section.<\/li><li>I did not change anything besides the value for the default identifier in the footer for the table of contents. However, you can use the .tocFooter section to do so.<\/li><li>I changed the button that shows and hides the table of contents to a different <a href=\"https:\/\/fontawesome.com\/v4\/icons\/\"><strong>Font Awesome<\/strong><\/a> icon. You control this button with the &#8216;.documentHeaderTrigger::before&#8217; selector and the content rule.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>.tocTitleWrapper h1 &gt; span:before {\n    content: \"\\f1ea\" !important;\n    color: transparent;\n    background-image: url(\/Content\/Images\/camera-aperture-icon.png); \n    background-size: auto 100%;\n    background-repeat: no-repeat;\n    background-position: top left;\n}\n\n.documentTOCWrapper {\n    background-image: url(\"https:\/\/static.vecteezy.com\/system\/resources\/previews\/002\/024\/449\/original\/abstract-black-and-gray-vertical-stripes-geometric-pattern-background-vector.jpg\");\n}\n\n.tocTitleWrapper {\n    background-color: black !important; \n}\n\n.tocFooter {}\n\n.documentHeaderTrigger::before {\n    content: \"\\f0c9\" !important;\n}<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\">The position of the table of contents<\/h3>\n\n<p>You can also put the table of contents in a different position. In addition to the rules that I show here you should put the button that shows and hides the table of contents in a new position and possibly change how sections&#8217; rounded corners work. You can also hide the button that shows and hides the table of contents.<\/p>\n\n<h4 class=\"wp-block-heading\">Righthand side<\/h4>\n\n<figure class=\"wp-block-image alignwide size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"508\" src=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-right-1024x508.png\" alt=\"\" class=\"wp-image-2996\" srcset=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-right-1024x508.png 1024w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-right-300x149.png 300w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-right-768x381.png 768w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-right-1536x761.png 1536w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-right-2048x1015.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><em>A WebHelp publication with changes from a style sheet and that shows its table of contents on the righthand side.<\/em><\/figcaption><\/figure>\n\n<p>I moved the table of contents to the righthand side in the above image with these changes in the style sheet:<\/p>\n\n<ul class=\"wp-block-list\"><li>The selector &#8216;.documentTOCWrapper, .documentTOCWrapper.open&#8217; targets the table of contents both when it shows and when it is hidden. Because our <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> publications use a <a href=\"https:\/\/www.w3schools.com\/css\/css3_flexbox.asp\"><strong>flexbox<\/strong><\/a> layout, you can move the table of contents on the other side of the view when you use the order command on it with a higher value than for the .documentBodyWrapper section.<\/li><li>The border-radius command with a value of 0 in the .documentBodyWrapper section removes rounded borders between content and the table of contents. You can keep them with the correct rules but this is the simplest way to not break the view when you move the table of contents to the other side.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>.documentTOCWrapper, .documentTOCWrapper.open {\n    order: 2;\n}\n\n.documentBodyWrapper {\n    order: 1;\n    border-radius: 0 !important;\n}<\/code><\/pre>\n\n<h4 class=\"wp-block-heading\">Vertical position<\/h4>\n\n<figure class=\"wp-block-image alignwide size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"508\" src=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-bottom-1024x508.png\" alt=\"\" class=\"wp-image-2998\" srcset=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-bottom-1024x508.png 1024w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-bottom-300x149.png 300w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-bottom-768x381.png 768w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-bottom-1536x761.png 1536w, https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-bottom-2048x1015.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><em>A WebHelp publication with changes from a style sheet and that shows its table of contents at the bottom of the page.<\/em><\/figcaption><\/figure>\n\n<p>I moved the table of contents to a vertical relative position in the above image with these changes in the style sheet:<\/p>\n\n<ul class=\"wp-block-list\"><li>You can change the <a href=\"https:\/\/www.w3schools.com\/css\/css3_flexbox.asp\"><strong>flexbox<\/strong><\/a> to use a vertical direction when you use the value &#8216;column&#8217; with the flex-direction rule on the .documentWrapper section.<\/li><li>You should make the table of contents as wide as the rest of the view. You can use the &#8216;.documentTOCWrapper, .documentTOCWrapper.open, .tocWrapper&#8217; selector for this. You must use the &#8216;!important&#8217; qualifier with this command because hiding the table of contents is related to its width value.<\/li><li>To hide content vertically, you must use the height value of the table of contents instead of its width. The .documentTocWrapper.open section&#8217;s height is the default. The .documentTOCWrapper section&#8217;s height is used when the table of contents is hidden.<\/li><li>Otherwise, this involves the same rules as when you move the content to the righthand side. The table of contents moves to the top of the view by default. If you make the value for the order rule higher for the table of contents than for the content, the table of contents shows at the bottom of the page. I made this value to a comment with the identifiers &#8216;\/*&#8217; and &#8216;*\/&#8217; around it because it is optional to move the table of contents to the bottom of the page.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>.documentWrapper {\n    flex-direction: column;\n}\n\n.documentTOCWrapper, .documentTOCWrapper.open, .tocWrapper {\n    width: 100% !important;\n}\n\n.documentTOCWrapper.open {\n    height: 60%;\n}\n\n.documentTOCWrapper {\n    height: 2%;\n}\n\n.documentBodyWrapper {\n    order: 1;\n    border-radius: 0 !important;\n}\n\n.documentTOCWrapper, .documentTOCWrapper.open {\n    \/*order: 2;*\/\n}<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Content field<\/h2>\n\n<p>The layout and style of the content proper are details that you can control with a style sheet. Such details include their background and the width of the content.<\/p>\n\n<p>How the style of the content field was changed in the pictures across this piece is shown below:<\/p>\n\n<ul class=\"wp-block-list\"><li>Sections other than the table of contents are part of the .documentBodyWrapper section. I changed its color below.<\/li><li>The contents are inside the .topicWrapper section. In this case, I made its color ligher relative to the dark background. I also added horizontal padding as part of this change. If you must change the width of this section, you mist use max-width rule and the &#8216;!important&#8217; qualifier. I made this value to a comment with the identifiers &#8216;\/*&#8217; and &#8216;*\/&#8217; around it because the pictures here do not involve this change. The user manual for <a href=\"https:\/\/dox.fi\/en\/systems\/dox-cms\/\"><strong>DoX CMS<\/strong><\/a> uses a wider content field at this time, though.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>.documentBodyWrapper {\n    background-color: #666 !important;\n}\n\n.topicWrapper {\n    background-color: rgba(255,255,255,0.35);\n    padding: 0% 2%;\n    height: 100%;\n    \/*max-width: 50% !important*\/\n}<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Find field<\/h2>\n\n<p>You can also change the details of the find field for content searches.<\/p>\n\n<p>How the style of the find field was changed in the pictures across this piece is shown below:<\/p>\n\n<ul class=\"wp-block-list\"><li>The background of the find field is lighter because of the darker background of the .documentHeaderSearchForm section.<\/li><li>You can change the style of the whole find field with rules added to the .documentHeaderSearchWrapper section. You can, for example, move this section or add text to it with pseudoelements.<\/li><li>The &#8216;.documentHeaderSearchForm::before&#8217; selector lets you change the magnifying glass to a different icon or to remove it. This involves the same methods as changing icons elsewhere or hiding sections.<\/li><li>The input field for the find feature uses the #search section.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>.documentHeaderSearchForm {\n    background-color: rgba(255,255,255,0.35) !important;\n}\n\n.documentHeaderSearchWrapper {}\n\n.documentHeaderSearchForm::before {}\n\n#search {}<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Forward and back buttons<\/h2>\n\n<p>The <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> template in <a href=\"https:\/\/dox.fi\/en\/systems\/dox-cms\/\"><strong>DoX CMS<\/strong><\/a> has forward and back buttons that let you change the topic that shows directly rather than through the use of the table of contents. By default, these buttons are below the content. However, you can move them and change their style.<\/p>\n\n<p>How the default style for content was changed in the pictures across this piece is shown below:<\/p>\n\n<ul class=\"wp-block-list\"><li>In this case, I moved the forward and back buttons with a change to the relative position of the .padinationWrapper section. Because the section is not below other content, I removed its background color. You can also use other methods such as a <a href=\"https:\/\/www.w3schools.com\/css\/css3_flexbox.asp\"><strong>flexbox<\/strong><\/a> that includes the sections around them together with the order command discussed above.<\/li><li>I separated the buttons on either side of content with a .pagination section that is wider than the .paginationWrapper section around it. If you make the .paginationWrapper section wider with relative units such as percents, it will turn the whole view too wide.<\/li><li>You can change the style of the text for the forward and back buttons with the selector &#8216;.pagination a&#8217;. I changed the color of this text to white.<\/li><li>The sections .paginationPrev and .paginationNext let you target the individual buttons. I separated the two into blocks with a width value that fits their new positions. I also used the float rule to position the two blocks at each end of the section around them.<\/li><li>Voit muuttaa siirtym\u00e4painikkeiden ikoneita kohdentajalla &#8216;.paginationPrev a:before, .paginationNext a:after&#8217;. T\u00e4ss\u00e4 tapauksessa tein niiden pallosta mustan. Voit vaihtaa niiden nuoli-ikonit voi samalla tavoin kuin muut <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a>-pohjan ikonit.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>.paginationWrapper {\n    background-color: transparent !important;\n    position: relative;\n    top: -70%;\n    left: -35%;\n}\n\n.pagination {\n    width: 170% !important;\n}\n\n.pagination a {\n    color: white !important;\n}\n\n.paginationPrev, .paginationNext {\n    display: inline-block !important;\n    width: 13% !important;\n}\n\n.paginationPrev {\n    float: left !important;\n}\n\n.paginationNext {\n    float: right !important;\n}\n\n.paginationPrev a:before, .paginationNext a:after {\n    background-color: black !important;\n}<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Default style<\/h2>\n\n<p>The most relevant details in the default style for the contents of the <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a>template are related to titles. You can control them as usual and use the &#8216;!important&#8217; qualifier where you must. The example that I used below removes the orange background from the titles of first level topics. If you see other details related to layout or style that relate to .static.css or doc.css according to the control panel, they involve the <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a>template&#8217;s default style.<\/p>\n\n<p>Alta l\u00f6ytyv\u00e4t t\u00e4m\u00e4n artikkelin kuvissa k\u00e4ytetyt keinot hallinnoida oletustyyli\u00e4:<\/p>\n\n<ul class=\"wp-block-list\"><li>The titles for first level topics (h1) have an orange background with rounded corners by default. You can hide this background when you you make it transparent.<\/li><li>Some titles use orange text by default. The examples below show one way to change their color. This is all part of how you normally use style sheets in <a href=\"https:\/\/dox.fi\/en\/systems\/dox-cms\/\"><strong>DoX CMS<\/strong><\/a>. Details such as the background color also make it a good idea to change the color of titles in <a href=\"https:\/\/help.adobe.com\/en_US\/robohelp\/2015\/robohtml\/book\/rob_layouts_la\/WebHelp_layout-.htm\"><strong>WebHelp<\/strong><\/a> publications.<\/li><li>You can also change the style of the scrollbars. Both <a href=\"https:\/\/www.w3schools.com\/howto\/howto_css_custom_scrollbar.asp\"><strong>W3C<\/strong><\/a> and the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Scrollbars\"><strong>Mozilla developer resources<\/strong><\/a> contain instructions for this. My implementation below shows how you can hide them. This involves the risk that users will not see some content, though, because they will not know that they should scroll down. A better implementation would involve thinner and perhaps partly transparent scrollbars.<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>h1 {\n\tbackground-color: transparent !important;\n}\n\n.titleWrapper * {\n\tcolor: white;\n}\n\n*::-webkit-scrollbar {\n\tdisplay: none;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>One publishing format that DoX CMS supports is WebHelp. They are HTML publications which are set inside a template that shows the table of contents together with one topic at a time. The template was originally &#8230; <a title=\"How to adapt the WebHelp template\" class=\"read-more\" href=\"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/\" aria-label=\"Read more about How to adapt the WebHelp template\">Read More<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[49,69,48,315,316,314,143,176,151,129,313,312],"class_list":["post-3019","post","type-post","status-publish","format-standard","hentry","category-news-archive","tag-cms-en","tag-css-en","tag-dox-en","tag-find-field","tag-find-in-content","tag-flexbox-en","tag-publication-template","tag-publications","tag-publishing-format","tag-stylesheet","tag-table-of-contents","tag-webhelp-en","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to adapt the WebHelp template - DoX Systems<\/title>\n<meta name=\"description\" content=\"Instructions on how you can use style sheets to change the layout and style of WebHelp publications in DoX CMS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to adapt the WebHelp template - DoX Systems\" \/>\n<meta property=\"og:description\" content=\"Instructions on how you can use style sheets to change the layout and style of WebHelp publications in DoX CMS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/\" \/>\n<meta property=\"og:site_name\" content=\"DoX Systems\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-31T07:48:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-31T07:48:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1024x508.png\" \/>\n<meta name=\"author\" content=\"Sami Rissanen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sami Rissanen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/\"},\"author\":{\"name\":\"Sami Rissanen\",\"@id\":\"https:\\\/\\\/dox.fi\\\/#\\\/schema\\\/person\\\/a83ff87cfa6da8c9e8d4c0943d6f5e3c\"},\"headline\":\"How to adapt the WebHelp template\",\"datePublished\":\"2022-10-31T07:48:29+00:00\",\"dateModified\":\"2022-10-31T07:48:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/\"},\"wordCount\":2313,\"publisher\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/dox.fi\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/edited-base-1024x508.png\",\"keywords\":[\"CMS\",\"CSS\",\"DoX\",\"find field\",\"find in content\",\"flexbox\",\"publication template\",\"publications\",\"publishing format\",\"stylesheet\",\"table of contents\",\"WebHelp\"],\"articleSection\":[\"News\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/\",\"url\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/\",\"name\":\"How to adapt the WebHelp template - DoX Systems\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/dox.fi\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/edited-base-1024x508.png\",\"datePublished\":\"2022-10-31T07:48:29+00:00\",\"dateModified\":\"2022-10-31T07:48:30+00:00\",\"description\":\"Instructions on how you can use style sheets to change the layout and style of WebHelp publications in DoX CMS.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/#primaryimage\",\"url\":\"https:\\\/\\\/dox.fi\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/edited-base-1024x508.png\",\"contentUrl\":\"https:\\\/\\\/dox.fi\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/edited-base-1024x508.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dox.fi\\\/en\\\/how-to-adapt-the-webhelp-template\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dox.fi\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to adapt the WebHelp template\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dox.fi\\\/#website\",\"url\":\"https:\\\/\\\/dox.fi\\\/\",\"name\":\"DoX Systems\",\"description\":\"KUSTANNUSTEHOKKAAT JA MODERNIT J\u00c4RJESTELM\u00c4T TEKNISEN DOKUMENTOINNIN JA VARAOSALIIKETOIMINNAN TARPEISIIN\",\"publisher\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/dox.fi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dox.fi\\\/#organization\",\"name\":\"DoX systems\",\"url\":\"https:\\\/\\\/dox.fi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/dox.fi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/dox.fi\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/favicon.png\",\"contentUrl\":\"https:\\\/\\\/dox.fi\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/favicon.png\",\"width\":512,\"height\":512,\"caption\":\"DoX systems\"},\"image\":{\"@id\":\"https:\\\/\\\/dox.fi\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dox.fi\\\/#\\\/schema\\\/person\\\/a83ff87cfa6da8c9e8d4c0943d6f5e3c\",\"name\":\"Sami Rissanen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/63d62c72a49d739fc7b816fd11fdf38a0bc362f94304a5b74cafe4eabc90e408?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/63d62c72a49d739fc7b816fd11fdf38a0bc362f94304a5b74cafe4eabc90e408?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/63d62c72a49d739fc7b816fd11fdf38a0bc362f94304a5b74cafe4eabc90e408?s=96&d=mm&r=g\",\"caption\":\"Sami Rissanen\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to adapt the WebHelp template - DoX Systems","description":"Instructions on how you can use style sheets to change the layout and style of WebHelp publications in DoX CMS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/","og_locale":"en_GB","og_type":"article","og_title":"How to adapt the WebHelp template - DoX Systems","og_description":"Instructions on how you can use style sheets to change the layout and style of WebHelp publications in DoX CMS.","og_url":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/","og_site_name":"DoX Systems","article_published_time":"2022-10-31T07:48:29+00:00","article_modified_time":"2022-10-31T07:48:30+00:00","og_image":[{"url":"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1024x508.png","type":"","width":"","height":""}],"author":"Sami Rissanen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sami Rissanen","Estimated reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/#article","isPartOf":{"@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/"},"author":{"name":"Sami Rissanen","@id":"https:\/\/dox.fi\/#\/schema\/person\/a83ff87cfa6da8c9e8d4c0943d6f5e3c"},"headline":"How to adapt the WebHelp template","datePublished":"2022-10-31T07:48:29+00:00","dateModified":"2022-10-31T07:48:30+00:00","mainEntityOfPage":{"@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/"},"wordCount":2313,"publisher":{"@id":"https:\/\/dox.fi\/#organization"},"image":{"@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/#primaryimage"},"thumbnailUrl":"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1024x508.png","keywords":["CMS","CSS","DoX","find field","find in content","flexbox","publication template","publications","publishing format","stylesheet","table of contents","WebHelp"],"articleSection":["News"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/","url":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/","name":"How to adapt the WebHelp template - DoX Systems","isPartOf":{"@id":"https:\/\/dox.fi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/#primaryimage"},"image":{"@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/#primaryimage"},"thumbnailUrl":"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1024x508.png","datePublished":"2022-10-31T07:48:29+00:00","dateModified":"2022-10-31T07:48:30+00:00","description":"Instructions on how you can use style sheets to change the layout and style of WebHelp publications in DoX CMS.","breadcrumb":{"@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/#primaryimage","url":"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1024x508.png","contentUrl":"https:\/\/dox.fi\/wp-content\/uploads\/2022\/10\/edited-base-1024x508.png"},{"@type":"BreadcrumbList","@id":"https:\/\/dox.fi\/en\/how-to-adapt-the-webhelp-template\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dox.fi\/en\/"},{"@type":"ListItem","position":2,"name":"How to adapt the WebHelp template"}]},{"@type":"WebSite","@id":"https:\/\/dox.fi\/#website","url":"https:\/\/dox.fi\/","name":"DoX Systems","description":"KUSTANNUSTEHOKKAAT JA MODERNIT J\u00c4RJESTELM\u00c4T TEKNISEN DOKUMENTOINNIN JA VARAOSALIIKETOIMINNAN TARPEISIIN","publisher":{"@id":"https:\/\/dox.fi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dox.fi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/dox.fi\/#organization","name":"DoX systems","url":"https:\/\/dox.fi\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/dox.fi\/#\/schema\/logo\/image\/","url":"https:\/\/dox.fi\/wp-content\/uploads\/2019\/10\/favicon.png","contentUrl":"https:\/\/dox.fi\/wp-content\/uploads\/2019\/10\/favicon.png","width":512,"height":512,"caption":"DoX systems"},"image":{"@id":"https:\/\/dox.fi\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dox.fi\/#\/schema\/person\/a83ff87cfa6da8c9e8d4c0943d6f5e3c","name":"Sami Rissanen","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/63d62c72a49d739fc7b816fd11fdf38a0bc362f94304a5b74cafe4eabc90e408?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/63d62c72a49d739fc7b816fd11fdf38a0bc362f94304a5b74cafe4eabc90e408?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63d62c72a49d739fc7b816fd11fdf38a0bc362f94304a5b74cafe4eabc90e408?s=96&d=mm&r=g","caption":"Sami Rissanen"}}]}},"_links":{"self":[{"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/posts\/3019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/comments?post=3019"}],"version-history":[{"count":3,"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/posts\/3019\/revisions"}],"predecessor-version":[{"id":3023,"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/posts\/3019\/revisions\/3023"}],"wp:attachment":[{"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/media?parent=3019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/categories?post=3019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dox.fi\/en\/wp-json\/wp\/v2\/tags?post=3019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}