Hi,
I have setup a subdomain to server images from”cdn.domain.no”. All images exept images from the Shoppica theme is now served by this url. How can i apply the same settings to images in the theme? I there a configuration file somewhere?
|
|
Open tb_themes/pavilion/config/theme.php and replace 'image_serve_domain' => '', with 'image_serve_domain' => 'cdn.domain.no/',
Do not forget the trailing slash in the domain name.
BR,
ThemeBurn team
|
|
I do not have a pavilion folder, i only see shoppica2 ant it does not contains the file theme.php
|
|
Sorry,
we replied for the Pavilion theme by force of habit. Which images are not server correctly (payment images, backgrounds etc.) ? ‘images from the Shoppica theme’ sounds very broad.
|
|
I thought so
Images:
/catalog/view/theme/shoppica2/images/border/box_border_2.png
/catalog/view/theme/shoppica2/images/bullet_1.png
/catalog/view/theme/shoppica2/images/intro_texture.png
/catalog/view/theme/shoppica2/images/shop_info_icons.png
/catalog/view/theme/shoppica2/images/sprite.png
/catalog/view/theme/shoppica2/images/texture_3.png
/image/data/slides/my_slide_1_5.jpg
/image/data/slides/my_slide_2_5.jpg
/image/data/visa_32.png
/image/data/paypal_32.png
If possible, i would also like to serve these files from a CDN domain:
/catalog/view/theme/shoppica2/javascript/common.js.php?v=2.0&is_mobile=0&is_touch=0&language_direction=ltr
/catalog/view/theme/shoppica2/javascript/images_slide.js
/catalog/view/theme/shoppica2/javascript/jquery/jquery.slides.min.js
/catalog/view/theme/shoppica2/javascript/noty/css/jquery.noty.css
/catalog/view/theme/shoppica2/stylesheet/screen.css.php?v=2.2.4&is_mobile=0&is_touch=0&language=ltr…
|
|
Hi,
we examined the information you provided and there is currently no universal way of making them load from cdn.
Some of them are hardcoded in the css file – you must change the paths manually by editing /catalog/view/theme/shoppica2/stylesheet/screen.css . You need to search for url( fragments.
You can also change manually the path of some resources, located in the end of catalog/view/themeshoppica2/template/common/footer.tpl , just before the closing </body> tag.
Generally the images that are not loaded from cdn are very few and this won’t affect the performance of your site. Most of the images in OpenCart come from categories and products.
BR,
ThemeBurn team
|
|