- Posts: 12
- Thank you received: 4
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.
Question Remove hard coded css styles?
15 years 6 months ago - 15 years 6 months ago #64083
by wabugi
Remove hard coded css styles? was created by wabugi
Hi everybody!
I've just installed Kunena 1.6 stable and I'm creating a new template based on the example template. I've found some hard coded css styles in the website header that are created by Kunena:
As you can see it is commented out and should be ignored by the browser. But actually it is not.
Can anybody tell me in which file I can find the code to remove it?
I've just installed Kunena 1.6 stable and I'm creating a new template based on the example template. I've found some hard coded css styles in the website header that are created by Kunena:
Code:
<style type="text/css">
<!--
/* Kunena Custom CSS */
#Kunena div.kheader { background: #5388B4 }
#Kunena div.kannouncement div.kheader { background: #990000 }
#Kunena div#kannouncement .kanndesc { background: #FFFFAA }
#Kunena div.kfrontstats div.kheader { background: #000000 }
#Kunena div.kwhoisonline div.kheader { background: #3B5323 }
#Kunena .kicon-profile { background-image: url("http://MYJOOMLAURL/components/com_kunena/template/default/media/iconsets/profile/default/default.png"); }
#Kunena .kicon-button { background-image: url("http://MYJOOMLAURL/components/com_kunena/template/default/media/iconsets/buttons/default/default.png"); }
#Kunena #kbbcode-toolbar li a,#Kunena #kattachments a { background-image:url("http://MYJOOMLAURL/components/com_kunena/template/default/media/iconsets/editor/default/default.png"); }
/* End of Kunena Custom CSS */
-->
</style>
As you can see it is commented out and should be ignored by the browser. But actually it is not.
Can anybody tell me in which file I can find the code to remove it?
Last edit: 15 years 6 months ago by wabugi.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #64089
by wabugi
Replied by wabugi on topic Re: Remove hard coded css styles?
Ok, I found it by myself.
The code is in the template.xml of my template
The code is in the template.xml of my template
Please Log in or Create an account to join the conversation.
15 years 6 months ago #64112
by severdia
Author of Using Joomla from O'Reilly Media. | www.usingjoomlabook.com
Replied by severdia on topic Re: Remove hard coded css styles?
They aren't actually hardcoded. You can change them in the Kunena admin and they override the CSS file. But if you don't need them, you can remove it.
Author of Using Joomla from O'Reilly Media. | www.usingjoomlabook.com
Please Log in or Create an account to join the conversation.
15 years 6 months ago #64114
by fxstein
We love stars on the Joomla Extension Directory .
Replied by fxstein on topic Re: Remove hard coded css styles?
These are them template parameter. If you do your own template you can decide which ones you want as backend parameters - those you would pass like these. Set them up in the xml and load them in your own copy/version of initialize.php for your template.
Hope this helps!
Hope this helps!
We love stars on the Joomla Extension Directory .
Please Log in or Create an account to join the conversation.
15 years 6 months ago #64176
by wabugi
Replied by wabugi on topic Re: Remove hard coded css styles?
Thanks for your answers. I decided to just remove them from the template.xml because I have really no use for these parameters.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #64190
by Matias
Replied by Matias on topic Re: Remove hard coded css styles?
Also remove them from initialize.php (if it's not in your template, copy it into there).
The following user(s) said Thank You: wabugi
Please Log in or Create an account to join the conversation.
Time to create page: 0.246 seconds