I have used Custom CSS and Custom JavaScript to automatically add to every HTML help topic the following footer:


You can customize these options during the build process, refer to the sections located near the top right of the screen:


Find the Custom CSS section below

.version-info {

    display: block;

    margin-top: 1em; /* leave a gap of (relative to its font size) */

    font-size: 1em;

    font-family: Aptos, Aptos;

    color: #555;

    text-align: left; /* Align text to the left */

    margin-right: 2em; /* Adjust spacing from right edge */

    max-width: fit-content;

}


.copyright {

    display: block;

    margin-top: 0.25em; /* leave a gap of (relative to its font size) */

    font-size: 1em;

    font-family: Aptos, Aptos;

    color: #555;

    text-align: left; /* Align text to the left */

    margin-right: 2em; /* Adjust spacing from right edge */

    max-width: fit-content;

}


.update-notice {

    display: block;

    margin-top: 0.25em; /* leave a gap of (relative to its font size) */

    font-size: 1em;

    font-family: Aptos, Aptos;

    color: #555;

    text-align: left; /* Align text to the left */

    margin-right: 2em; /* Adjust spacing from right edge */

    max-width: fit-content;

}


Find the Custom JavaScript section below

// Function to insert the copyright and version elements

function insertCopyright() {

    const footerContent = document.querySelector("#topic_footer_content");


    // Ensure footer exists and copyright hasn't been added yet

    if (footerContent && !footerContent.querySelector(".copyright")) {

        // Create version info element

        const versionElement = document.createElement("p");

        versionElement.className = "version-info";

        versionElement.textContent = "PurpleXtra Technical Handbook version: 0.74";


        // Create copyright element

        const copyrightElement = document.createElement("p");

        copyrightElement.className = "copyright";

        copyrightElement.textContent = "Copyright © PurpleXtra Limited 2024–2025. All Rights Reserved.";


        // Create update notice element

        const updateNoticeElement = document.createElement("p");

        updateNoticeElement.className = "update-notice";

        updateNoticeElement.textContent = "This document is subject to ongoing updates. For the latest version, visit: https://onlinedata.purplextra.com/purplextrahandbook/";


        // Append all elements in order

        footerContent.appendChild(versionElement);

        footerContent.appendChild(copyrightElement);

        footerContent.appendChild(updateNoticeElement);

    }

}


// Observer to detect when footer content changes

const observer = new MutationObserver(() => {

    insertCopyright();

});


// Start observing the entire document for changes

observer.observe(document.body, { childList: true, subtree: true });


// Run once in case the footer is already present

insertCopyright();


Note! This also shows when the topic is printed.



Topic last reviewed: 29/07/25