• 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 change statics to anothoer url

qinhai

Chevereto Noob
I want change CSS JS theme‘s images’ and theme‘s fonts to another url.How can I do it.

Not use CDN for all statics, Just the theme'static. When I open CDN,they will change ro CDN/url.
 
I'm sure that you will figure out that is easier to use a CDN for your website and use external storage "Local" for images stored in your website but that you want to load with another URL.

If you want to just change the theme assets check app/lib/functions.render.php for header and footer functions.

For image URLs you will need to hack app/lib/classes/class.image.php display url.
 
Add this line at app/settings.php
Code:
define('qinhai_host','http://pic.qinhai.us');

change app/lib/classes/class.image.php at 1332

[CODE highlight="8"] if(qinhai_host){
$url=parse_url ($display['url']);
$image['display_url']= qinhai_host.$url['path'];
}else{
$image['display_url'] = $display['url'];
}

//$image['display_url'] = $display['url'];[/CODE]
 
Back
Top