• 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.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

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