How to add the own css style
- GK User
- Tue Apr 12, 2016 3:30 am
I have a style sheet to want to use in K2 item artlcles.
like the following.
.console {
background-color: #000;
XXXXXXXXXXXXXXXXXXXXXXXXXX;
white-space: pre;
}
p.console-caption {
margin-top: 0em;
text-align:center;
}
I want to use it like this in the articles in order to show like the console box effect.
<pre class="console">
XXXXXXXXXXXXXXXX
</pre>
I added the style into the editor.css and template.css file, but it does not work.
Please let me know where to add or modify the new css style file and how to use it.
like the following.
.console {
background-color: #000;
XXXXXXXXXXXXXXXXXXXXXXXXXX;
white-space: pre;
}
p.console-caption {
margin-top: 0em;
text-align:center;
}
I want to use it like this in the articles in order to show like the console box effect.
<pre class="console">
XXXXXXXXXXXXXXXX
</pre>
I added the style into the editor.css and template.css file, but it does not work.
Please let me know where to add or modify the new css style file and how to use it.
-
- Junior Boarder
- GK User
- Wed Apr 13, 2016 6:27 am
I solved by myself.
I used Template->Advanced settings
Custom CSS code box.
No reply from Gavick yet.
Are you absent ?
I used Template->Advanced settings
Custom CSS code box.
No reply from Gavick yet.
Are you absent ?
-
- Junior Boarder
- teitbite
- Sat Apr 16, 2016 7:45 pm
Hi
A file for a custom css is /css/override.css, but field in template settings is also a good solution.
A file for a custom css is /css/override.css, but field in template settings is also a good solution.
-
- Moderator
- GK User
- Mon Apr 18, 2016 7:38 am
Thank you teitbite.
There is problem.
We can not use TinyMCE editor to edit the custom css since custom tag will be disappeared when editing.
CodeMirror or non editor should be used.
There is problem.
We can not use TinyMCE editor to edit the custom css since custom tag will be disappeared when editing.
CodeMirror or non editor should be used.
-
- Junior Boarder
- teitbite
- Sat Apr 23, 2016 4:51 pm
Hi
Custom CSS file doesn't have editor and if You are using override.css file instead than I would recommend to change it via ftp, so You will be able to use any editor. Joomla editors have a habit of removing some unrecognised code on save. It's a hacking attempt security.
Custom CSS file doesn't have editor and if You are using override.css file instead than I would recommend to change it via ftp, so You will be able to use any editor. Joomla editors have a habit of removing some unrecognised code on save. It's a hacking attempt security.
-
- Moderator
5 posts
• Page 1 of 1