Hi,
I'd like to add a ttf font for logo text, it is possible?
I have copied ttf file in ../templates/j51_classic/fonts directory ed I have modified ../templates/j51_classic/elements/googlefonts.php as specified in this tutorial, but It doesn't work.
thanks in advance.
- bel.gio
-
- Free Templates / Extensions
- Friday, 04 September 2015
- Subscribe via email
Hello
Modifying the googlefonts.php will only work if you are working with a Google font which I suspect is not the case?
You could try using the @font-face method as described in the following article.. https://css-tricks.com/snippets/css/using-font-face/
CSS can be added to the Custom CSS field of your templates parameters.
Ciarán
Modifying the googlefonts.php will only work if you are working with a Google font which I suspect is not the case?
You could try using the @font-face method as described in the following article.. https://css-tricks.com/snippets/css/using-font-face/
CSS can be added to the Custom CSS field of your templates parameters.
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 1
Hi,
I've created my CSS for @font-face and I've put it in Custom CSS, I've copied all font files in ../fonts/ directory
I've modify nexus.css file and I've entered the line
in h1.logo-text directive, but it doesn't seem to work.
I'd like to know which are the other css files I've to modify for using it.
Thanks
I've created my CSS for @font-face and I've put it in Custom CSS, I've copied all font files in ../fonts/ directory
I've modify nexus.css file and I've entered the line
font-family: 'myfont', Verdana, sans-serif;
in h1.logo-text directive, but it doesn't seem to work.
I'd like to know which are the other css files I've to modify for using it.
Thanks
- more than a month ago
- Free Templates / Extensions
- # 3
Hi
this is my @font-face
this is my @font-face
@font-face {
font-family: 'Myfont';
src: url('../fonts/Myfont.eot');
src: url('../fonts/Myfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Myfont.woff2') format('woff2'),
url('../fonts/Myfont.woff') format('woff'),
local('Myfont'), url('../fonts/Myfont.ttf') format('truetype'),
url('../fonts/Myfont.svg#svgMyfont') format('svg');
}
- more than a month ago
- Free Templates / Extensions
- # 5
Hello
There appears to be a 404 error for the location of your font file. Going by your CSS you should have it located at http://asdlavenomombello.tk/joomla/fonts/LHANDW.ttf ?
Ciarán
There appears to be a 404 error for the location of your font file. Going by your CSS you should have it located at http://asdlavenomombello.tk/joomla/fonts/LHANDW.ttf ?
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 8
Hello,
thanks for support, fonts files are in http://asdlavenomombello.tk/joomla/templates/j51_classic/fonts
thanks for support, fonts files are in http://asdlavenomombello.tk/joomla/templates/j51_classic/fonts
- more than a month ago
- Free Templates / Extensions
- # 9
Hi,
I have copied fonts files in http://asdlavenomombello.tk/joomla/fonts/, but it works only in some pages (like "Rassegna Stampa".
I've tried to modify @font-face file
but I had the same result: it works only in menu item root (with exception of home)
I have copied fonts files in http://asdlavenomombello.tk/joomla/fonts/, but it works only in some pages (like "Rassegna Stampa".
I've tried to modify @font-face file
@font-face {
font-family: 'Myfont';
src: url('../templates/j51_classic/fonts/Myfont.eot');
src: url('../templates/j51_classic/fonts/Myfont.eot?#iefix') format('embedded-opentype'),
url('../templates/j51_classic/fonts/Myfont.woff2') format('woff2'),
url('../templates/j51_classic/fonts/Myfont.woff') format('woff'),
local('Myfont'), url('../fonts/Myfont.ttf') format('truetype'),
url('../templates/j51_classic/fonts/Myfont.svg#svgMyfont') format('svg');
}
but I had the same result: it works only in menu item root (with exception of home)
- more than a month ago
- Free Templates / Extensions
- # 10
Hello
To resolve try using the full URL to your font files (eg. http://www.asdlavenomombello.tk/joomla/templates/j51_classic/fonts/Myfont.eot) in your font-face CSS.
Ciarán
To resolve try using the full URL to your font files (eg. http://www.asdlavenomombello.tk/joomla/templates/j51_classic/fonts/Myfont.eot) in your font-face CSS.
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 11
thanks Ciaràn,
but it doesn't work; this is @font-face modified
and now no page shows Myfont
but it doesn't work; this is @font-face modified
@font-face {
font-family: 'Myfont';
src: url('http://www.asdlavenomombello.tk/joomla/templates/j51_classic/fonts/Myfont.eot');
src: url('http://www.asdlavenomombello.tk/joomla/templates/j51_classic/fonts/Myfont.eot?#iefix') format('embedded-opentype'),
url('http://www.asdlavenomombello.tk/joomla/templates/j51_classic/fonts/Myfont.woff2') format('woff2'),
url('http://www.asdlavenomombello.tk/joomla/templates/j51_classic/fonts/Myfont.woff') format('woff'),
local('Myfont'), url('http://www.asdlavenomombello.tk/joomla/templates/j51_classic/fonts/Myfont.ttf') format('truetype'),
url('http://www.asdlavenomombello.tk/joomla/templates/j51_classic/fonts/Myfont.svg#svgMyfont') format('svg');
}
and now no page shows Myfont
- more than a month ago
- Free Templates / Extensions
- # 12
Hi,
I've modified @font-face and I've moved it in custom.css file, and now it works fine
This is my code
Thanks to ciaràn for support
I've modified @font-face and I've moved it in custom.css file, and now it works fine
This is my code
@font-face {
font-family: 'Myfont';
src: url('../fonts/Myfont.eot');
src: url('../fonts/Myfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Myfont.woff2') format('woff2'),
url('../fonts/Myfont.woff') format('woff'),
local('Myfont'), url('../fonts/Myfont.ttf') format('truetype'),
url('../fonts/Myfont.svg#svgLHANDW') format('svg');
}
Thanks to ciaràn for support
- more than a month ago
- Free Templates / Extensions
- # 13
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »