[Skip to main content](#vessel-content)

#   Move CSS from header to stylesheet?

##

- **[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")**
- [![Ch3vr0n's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2857.jpg)](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile") Topic Author
- [ Offline](/forum/user/2857-ch3vr0n)

Less More

- Posts: 259
- Thank you received: 10
-
-
- [](http://www.soliweb.be)
-

12 years 3 months ago [\#163597](#163597) by [Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")  *[Move CSS from header to stylesheet?](/forum/2-general-talk-about-hikashop/869623-move-css-from-header-to-stylesheet#163597 "In trying to keep the website code as clean and secure as possible i quickly inspected the index source code. I found this in the  section.  Can this this not be moved to a stylesheet in the same place the others are /media/com&#95;hikashop/css ?")* was created by *[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")*

In trying to keep the website code as clean and secure as possible i quickly inspected the index source code. I found this in the &lt;head&gt;&lt;/head&gt; section.
Code:

&lt;style type="text/css"&gt; #hikashop_category_information_module_105 div.hikashop_subcontainer { background:#FFFFFF; } #hikashop_category_information_module_105 .hikashop_rtop *,#hikashop_category_information_module_105 .hikashop_rbottom *{ background:#FFFFFF; } #hikashop_category_information_module_105 div.hikashop_subcontainer,#hikashop_category_information_module_105 div.hikashop_subcontainer span { text-align:center; } #hikashop_category_information_module_105 div.hikashop_container { text-align:center; } #hikashop_category_information_module_105 div.hikashop_container { margin:10px 10px; } #hikashop_category_information_module_105 div.hikashop_category,#hikashop_category_information_module_105 div.hikashop_product{ float:left; } #hikashop_category_information_module_105 .hikashop_subcontainer { -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; } #hikashop_category_information_module_99 div.hikashop_subcontainer { background:#FFFFFF; } #hikashop_category_information_module_99 .hikashop_rtop *,#hikashop_category_information_module_99 .hikashop_rbottom *{ background:#FFFFFF; } #hikashop_category_information_module_99 div.hikashop_subcontainer,#hikashop_category_information_module_99 div.hikashop_subcontainer span { text-align:center; } #hikashop_category_information_module_99 div.hikashop_container { text-align:center; } #hikashop_category_information_module_99 div.hikashop_container { margin:10px 10px; } #hikashop_category_information_module_99 div.hikashop_category,#hikashop_category_information_module_99 div.hikashop_product{ float:left; } #hikashop_category_information_module_99 .hikashop_subcontainer { -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; } &lt;/style&gt;

Can this this not be moved to a stylesheet in the same place the others are /media/com_hikashop/css ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2OTYyMy1tb3ZlLWNzcy1mcm9tLWhlYWRlci10by1zdHlsZXNoZWV0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#163619](#163619) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Move CSS from header to stylesheet?](/forum/2-general-talk-about-hikashop/869623-move-css-from-header-to-stylesheet#163619 "In trying to keep the website code as clean and secure as possible i quickly inspected the index source code. I found this in the  section.  Can this this not be moved to a stylesheet in the same place the others are /media/com&#95;hikashop/css ?")*

Hi,

This kind of css is added dynamically, as you can see it is based on specific module id, so no by default we can't put it in a css file.

You can manually add it to the css file, but some php code will require to be edited in order to remove the add of this css.
But don't worry, having css in the header is secure, nobody can hack via css ![;)](/media/kunena/emoticons/11.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2OTYyMy1tb3ZlLWNzcy1mcm9tLWhlYWRlci10by1zdHlsZXNoZWV0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")**
- [![Ch3vr0n's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2857.jpg)](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile") Topic Author
- [ Offline](/forum/user/2857-ch3vr0n)

Less More

- Posts: 259
- Thank you received: 10
-
-
- [](http://www.soliweb.be)
-

12 years 3 months ago [\#163714](#163714) by [Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")  Replied by *[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")* on topic *[Move CSS from header to stylesheet?](/forum/2-general-talk-about-hikashop/869623-move-css-from-header-to-stylesheet#163714 "In trying to keep the website code as clean and secure as possible i quickly inspected the index source code. I found this in the  section.  Can this this not be moved to a stylesheet in the same place the others are /media/com&#95;hikashop/css ?")*

no worries then if its generated on the fly. Know nobody can hack via css, the only thing it does is stylize elements

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2OTYyMy1tb3ZlLWNzcy1mcm9tLWhlYWRlci10by1zdHlsZXNoZWV0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.102 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
