Skip to main content
CONeill
Inspiring
September 25, 2015
Answered

Editing CPLibraryAll.css from program files

  • September 25, 2015
  • 1 reply
  • 2922 views

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 has been closed for replies.
    Correct answer TLCMediaDesign

    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

    1 reply

    TLCMediaDesign
    TLCMediaDesignCorrect answer
    Inspiring
    September 25, 2015

    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

    CONeill
    CONeillAuthor
    Inspiring
    September 28, 2015

    Perfect, that's worked flawlessly. Thank you!

    JeelyK
    Inspiring
    August 15, 2016

    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!