• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • 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