#known 2016-05-02
2016-05-02 UTC
tantek, loic_m, Sheo, benborges, j12t, tommorris_ and Torsten_ joined the channel
#
Torsten_ Hey guys, is there anybody out there who knows how to create a theme? I followed the instructions in the documentation, but my CSS is not used. Instead of that, there is some default CSS, and looking into the source code, I found that there is …
#
Torsten_ … a subfolder like known/css/2016042301/default.css in the head section of the HTML output. No matter what I try, my CSS is not used.
#
Torsten_ I event activated the plugin Custom CSS and copied my CSS code into the text area, but nothing.
#
Torsten_ @kylewm: Uhm, wait a minute, I guess I only overrode the header template.
#
Torsten_ Okay, I am taking a look at it, I’ll be right back soon.
#
Torsten_ Hm, in default/shell there are: aftercontent.tpl.php, footer.tpl.php, and head.tpl.php, which links to the CSS file.
#
Torsten_ But no css.tpl.php.
#
Torsten_ And I have not found such a file in the other Known themes.
#
Torsten_ But editing the CSS in the textarea of the plugin Custom CSS works now. So thanks for your help, much appreciated!
#
kylewm this is the file I was looking at https://github.com/idno/Known/blob/master/templates/default/shell/css.tpl.php
#
Torsten_ Yes, these seem to be the default CSS styles, which can be overridden by a custom stylesheet.
#
Torsten_ My only problem is how to include webfonts. No problem normally, I do that all the time, but in Known there seems to be something wrong with the path to the webfonts. I think I can fix it.
#
cleverdevil I use webfonts on my Known site.

#
cleverdevil using custom CSS

#
Torsten_ @cleverdevil: Yes, in deed. In my case, I can’t even change the generic font. The entry text is in Times New Roman or Georgia or whatever, although in my CSS there is sans-serif in the body element.
#
Torsten_ I thought that might be some caching problem or whatever, but even after clearing the browser cache, nothing changes.
#
Torsten_ Like this: body
{ background: #fff; color: #373737; font-family: 'GraviolaSoft-Medium',sans-serif; margin-bottom: 2em; }
#
Torsten_ Ah, okay, now I know. In the custom CSS, I have to override the font-family in some elements, like the headers and the entry text. I wish I could filter out all that default CSS stuff and create my very own style.
#
Torsten_ I meant the headings, like h1 and h2.
#
Torsten_ Pardon my weak English.
#
Torsten_ So, Known handles some things a bit differently than the content management systems I have used before.
#
Torsten_ Anyway, thanks a lot for your help, guys!
tantek joined the channel