Forums

Font Awesome in Printed output

NickOg 05 Aug, 2015
Hi

I am using the font awesome set that is now available on CC and CF. I am using Bob's javascript code in his print.php function but want to add my own custom css plus font awesome.
I have modified Bob's code so that it looks like this.

    css_urlFontAwesome = '/templates/js_community/wright/fontawesomemore/css/font-awesome.css';    
    css_urlFontAwesome = \"<link rel='stylesheet' type='text/css' href='\"+css_urlFontAwesome+\"' media='all' />\";
    css_urlCustom = '/templates/js_community/css/custom.css';    
    css_urlCustom = \"<link rel='stylesheet' type='text/css' href='\"+css_urlCustom+\"' media='all' />\";
    css_urlCourseReceipts = '/components/com_u3aV5/courses/css/lisCourseReceiptsPick.css';
    css_urlCourseReceipts = \"<link rel='stylesheet' type='text/css' href='\"+css_urlCourseReceipts+\"' media='all' />\";
    html = '<html><head>'+css_urlFontAwesome+css_urlCustom+css_urlCourseReceipts+'</head>'+jQ(id).html()+'</html>';



But that doesn't do the trick. How can I include font awesome in the printed output?


Regards

Nick
NickOg 05 Aug, 2015
1 Likes
Ah hah. Thinkin g aout it a bit more and looking at the code


    css_urlFontAwesome = '/libraries/cegcore/assets/font_awesome/css/font-awesome.css';    
    css_urlFontAwesome = \"<link rel='stylesheet' type='text/css' href='\"+css_urlFontAwesome+\"' media='all' />\";
    css_urlCustom = '/templates/js_community/css/custom.css';    
    css_urlCustom = \"<link rel='stylesheet' type='text/css' href='\"+css_urlCustom+\"' media='all' />\";
    css_urlCourseReceipts = '/components/com_u3aV5/courses/css/lisCourseReceiptsPick.css';
    css_urlCourseReceipts = \"<link rel='stylesheet' type='text/css' href='\"+css_urlCourseReceipts+\"' media='all' />\"


This line being different

    css_urlFontAwesome = '/libraries/cegcore/assets/font_awesome/css/font-awesome.css';    


Nick
This topic is locked and no more replies can be posted.