Dear hosein kazembeiki,
A. how to add your font in sj news:
Example: you can add "UTM Swashes.ttf" font in sj news
Please following the steps:
1. create folder "swashes" in your_site\templates\sj_news\asset\fonts\
2. copy your font "UTM Swashes.ttf" in your_site\templates\sj_news\asset\fonts\swashes\
2. create a font-your.css file in your_site\templates\sj_news\asset\fonts\swashes\
3. copy code the below in font-your.css file:
@font-face {
font-family: 'UTM Swashes';
src: url('UTM Swashes.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
4. go to your_site\templates\sj_news\includes\frame_inc.php and find:
$yt->ytStyleSheet('css/template.css');
=>
if(!defined('FONT_SWASHES')){
$yt->ytStyleSheet('asset/fonts/swashes/font-swashes.css');
define('FONT_SWASHES', 1);
}
$yt->ytStyleSheet('css/template.css');
6. go to your_site\templates\sj_news\templateDetails.xml and find:
<field name="fontName" type="list" default="arial" label="FONT_NAME_LABEL" description="FONT_NAME_DESC" >
=>
<field name="fontName" type="list" default="arial" label="FONT_NAME_LABEL" description="FONT_NAME_DESC" >
<option value="UTM Swashes">UTM Swashes</option>
7. go to administrator -> templates manager -> Typography -> Font Family -> select "UTM Swashes" , then save.
8. or use font in your css file : font-family: 'UTM Swashes';
B. how to add google font in sj news
please refer to at here:
www.smartaddons.com/forum/278-sj-jare-template/12551-solved-add-google-font
Thanks!