Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest
  • Page:
  • 1

TOPIC: fonts location

fonts location 8 years ago #27710

hi


where should i put my persian fonts to use in template?
Last Edit: 8 years ago by kiasati.
The topic has been locked.

Re: fonts location 8 years ago #27720

  • thuyltt
Dear sir,
If you use google font, you need change in admin: Extensions-> Templates-> your temp
If you use other font you need add it in css code: templates/your temp/css/your _css.css

body{
font-family: font !important;
}
font: font you want

Thanks.
The topic has been locked.

Re: fonts location 8 years ago #27745

can u explain more? step by step

tnx
The topic has been locked.

Re: fonts location 8 years ago #27756

  • thuyltt
Dear sir,
1. If you use google font, you need change in admin: Extensions-> Templates-> your temp
prntscr.com/aqu1xy

2. If you use other font you need add it in css code file: templates/your temp/css/your _css.css
body{
font-family: font !important;
}
font: font you want to change

Thanks.
The topic has been locked.

Re: fonts location 8 years ago #27761

the font i wanna add is "WYekan" . its a persian font.
i added the following code to your_css.css file

...................................................................................................................
body{
font-family: 'WYekan' !important;
}
font: 'WYekan'
...................................................................................................................

is it right?
should i put my font files in css folder?
The topic has been locked.

Re: fonts location 8 years ago #27767

i did this and it worked:

.......................................................................................................................................................
Please go try these steps:
1. create folder "yekan" in your_site\templates\sj_hexagon\asset\fonts\

2. copy your font "yekan.ttf" in your_site\templates\sj_hexagon\asset\fonts\yekan\

2. create a yekan_font.css file in your_site\templates\sj_hexagon\asset\fonts\yekan\

3. copy code the below in yekan_font.css file:
@font-face {
font-family: 'yekan';
src: url('yekan.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
4. Then go to your_site\templates\sj_hexagon\includes\frame_inc.php and find:
$yt->ytStyleSheet('css/template.css');
$yt->ytStyleSheet('css/pattern.css');
$yt->ytStyleSheet('css/your_css.css');
=> Edit to:
$yt->ytStyleSheet('css/template.css');
$yt->ytStyleSheet('css/pattern.css');
$yt->ytStyleSheet('css/your_css.css');
$yt->ytStyleSheet('asset/fonts/yekan/yekan_font.css');

Then please go to templates/ your _temp/css/your_css.css and add the code:

body{
font-family: yekan !important;
}
.............................................................................................................................................................................

i found this in following address:
www.smartaddons.com/forum/275-general-questions/8648-steps-to-add-a-new-font-in-sj-template?limit=6&start=12

my site's font changed to yekan_font but it didnt add to ytframework --> typography
so i dont have the option to switch between fonts.

plz help me
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.22 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes