• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • This community is user driven. Be polite with other users.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

How to link a js file?

TedW

Chevereto Member
I have in my custom_hooks folder head.php with the following code

<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
<link rel="stylesheet" type="text/css" href="/assets/css/ebayblock.css">
<script source="/assets/js/ajaxtabs.js"></script>

but ajaxtabs.js is not loading. I made sure the source is correct and the file is uploaded to the server. Any idea what I might be doing wrong?

Thanks 🙂
 
Check the browser console, any JS error will be printed there.
 
Of course that's the first thing I did. It seems Chevetero is blocking .js files from loading, but I did a hard coded hack and got it working.
 
Chevereto doesn't touch block anything, most likely you did something wrong. Hard to tell why or how if you don't show me a live thing to see it by myself.
 
Thanks for the quick reply. I'll undo my hack and try again. Maybe if I start from scratch I won't repeat whatever I did wrong.
 
Back
Top