General question about the Hikashop css load

  • Posts: 57
  • Thank you received: 5
11 years 2 months ago #144633

Hi Hika team,

When I look at the source of the pages where the hikashop component is used I see that the css for hikashop is "injected".
(Please mind that I might not be using this term correctly. )

For clarity's sake instead of a <link rel...> it is loaded like <style type> and a huge chunk of css follows.

My question:
Why is this method used?

My assumption:
I assume that this comes in handy when you have pages that hikashop has no relation to and avoids the css being loaded if the hikashop component or any hikashop modules, are not being used on a for example, an "about me" page.

Assumption N2
Hika styles.
When I upgraded to v2.3.0 my design looked all messed up, however in the config there was an option hika css style->old which on save reverted to my custom styling. I assume that by loading the css like that you can provide style changes to hikashop independent of each other.

I hope you can give me a bit more clarity on this topic.

In addition is it possible to load the css with a ref link in the head, so that it looks all clean and tidy when you view the source?

Kind regards,

Drago.

Please Log in or Create an account to join the conversation.

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
11 years 2 months ago #144783

Hi,

HikaShop generate some dynamic CSS content for your product/category listing.
When you edit the option of a module/menu you can change some design options and it result that HikaShop generate the CSS dynamically when display the module/menu.
And this CSS content is only generated and added to the page when it is required.

For HikaShop 2.3.0, please use the "old" css file in your HikaShop configuration (section CSS).
We introduce a new default style for HikaShop but we kept the old css one.
The rest of the styles should be update soon.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum