Skip to main content
RyanSargisson
Inspiring
Sep 25, 2015 3:30 PM UTC
Answered

Editing CPLibraryAll.css from program files

So I want to embed custom fonts into my SCORM package (we publish HTML5-only from Captivate 8 and do not want to limit ourselves to 6 web-safe fonts) and I have worked out how to do this successfully but it involves making changes to the file 'CPLibraryAll.css' after the project is published, I have tried to see if I can make changes to the equivalent file in Program Files but I am unable to see whether it exists there. It seems that this file may be generated during the publish.

Does anybody know a means of modifying a program file so that I don't have to make my amends for every project every time I publish?

Thank you

Mike

    This topic is closed to new replies. Start a new post to keep the conversation going.
    TLCMediaDesign
    TLCMediaDesignCorrect answer
    Inspiring
    Sep 25, 2015 4:01 PM UTC

    You can put your own CSS in the C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML\assets\css folder and put your CSS include statement in the index.html template by editing the following line.

    cpXHRJSLoader.css('assets/css/CPLibraryAll.css, assets/css/YourCSS.css ',function() {

    Since your CSS is loaded second it should override any similar CSS in the CPLibraryAll.css

    7 replies

    TLCMediaDesign
    TLCMediaDesignCorrect answer
    Inspiring
    Sep 25, 2015 4:01 PM UTC

    You can put your own CSS in the C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML\assets\css folder and put your CSS include statement in the index.html template by editing the following line.

    cpXHRJSLoader.css('assets/css/CPLibraryAll.css, assets/css/YourCSS.css ',function() {

    Since your CSS is loaded second it should override any similar CSS in the CPLibraryAll.css

    Translate
    RyanSargisson
    Inspiring
    Sep 28, 2015 8:18 AM UTC

    Perfect, that's worked flawlessly. Thank you!

    Translate
    JeelyK
    Inspiring
    Aug 15, 2016 8:39 PM UTC

    Hi there, I've been trying to figure out how to embed fonts into the 'CPLibraryAll.css' file and it seems you have found a way to do that. Would you mind sharing how to embed a font that way?

    Thanks!

    Translate