Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

amien
Valued Contributor

Mashup: Put css files in a css folder is not working

I have this in my main.html:

<link rel="stylesheet" href="base.css">

<script src="Main.js"></script>

I want these files in folders. So i added a CSS and JS folder in the extension folder

And changed to:

<link rel="stylesheet" href="css/base.css">

<script src="js/Main.js"></script>

But it doesn't work. I also tried ./js/Main.js and /js/Main.js

What do i do wrong?

6 Replies
sureshqv
Esteemed Contributor III

Re: Mashup: Put css files in a css folder is not working

you have to drag the folder path,

dont write manually sometimes it wnt work

sandeep_roy
Contributor

Re: Mashup: Put css files in a css folder is not working

Please check the CSS and JS file structure properly. Also check WBL file in your folder.

amien
Valued Contributor

Re: Mashup: Put css files in a css folder is not working

is that WBL really needed? Cause i don't use the Dev-Hub to develop (using Atom)

I added "css\base.css; " to WBL , but that deosn't solve it.

and the dev hub seems not to be able to handle files in folders. I can't save it

arulsettu
Honored Contributor III

Re: Mashup: Put css files in a css folder is not working

add new file in mashup

then paste your css code

save it like filename.css

and use it your html page

sandeep_roy
Contributor

Re: Mashup: Put css files in a css folder is not working

No Amien, you don't have to put CSS file in WBL!!!..You can revert the change.

I am saying to check the folder structure where the extension is saved. Sometimes WBL file need to written properly.

amien
Valued Contributor

Re: Mashup: Put css files in a css folder is not working

I fixed it by:

* zipping the extension (including the folder structure that i want)

* delete the extension

* import the extension