Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi,
i have a problem with pretty url and js files.
I modified my css and js links with <cms:show k_site_link />, in script.js also, some of them work, others no (for the mobile menu, for example ...)
i can't figure it out ...

here is my homepage
http://e-san.ro/homepage

and these are my files
<link rel="stylesheet" href="<cms:show k_site_link />css/grid.css">
<link rel="stylesheet" href="<cms:show k_site_link />css/style.css">
<link rel="stylesheet" href="<cms:show k_site_link />css/menu.css">
<link rel="stylesheet" href="<cms:show k_site_link />css/cercles.css">
<link rel="stylesheet" href="<cms:show k_site_link />css/font-awesome.min.css">
<script src="<cms:show k_site_link />js/jquery.js"></script>
<script src="<cms:show k_site_link />js/jquery-migrate-1.2.1.js"></script>
<script src="<cms:show k_site_link />js/device.min.js"></script>

can you help me out?

Thank you!
Hi, you have some junk here:
<link rel="stylesheet" href="http://e-san.ro/css/slider.css">
</script>
</head>
<body>

Happy coding :)
p.s. It is good to validate html here https://validator.w3.org/

Edit:
Another issue is that you used couch tags inside scripts, which are not managed by couch.
Like in http://e-san.ro/js/script.js line goes like
include('<cms:show k_site_link />js/jquery.cookie.js');

and many more instances of the same junk that makes scripts fail.

I suggest to let only relative paths there - try which one works:
include('js/jquery.cookie.js'); or include('/js/jquery.cookie.js');
Since your js folder is in root ("/") ^ both ^ can work and it doesn't matter which one to paste.

It should work and won't take much time fixing.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Thank you for your help and tips!
It worked with "/" :D , i haven't tried this way since the <cms:show k_site_link /> made no difference, but i understood the problema with that.

Thank you!!!
You are welcome :)
Once I needed to use some couch tags in a script, so I found a working way with switching from loading external file to embedding a snippet with script. It is not bad, since both ways both files will be anyways loaded by browser.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
4 posts Page 1 of 1
cron