
you can use font face css in your site.triveni1231 wrote:I want to add few custom fonts.
Triveni
Post by jiyuu19th » Sun Dec 22, 2013 1:22 pm
you can use font face css in your site.triveni1231 wrote:I want to add few custom fonts.
Triveni
Post by yohebon » Wed Feb 26, 2014 4:06 am
I had the same question. You can search for an answer here:pishro wrote:how i can add custom fonts language, CSS and JavaScript files to my template based on the Warp Framework ?
Code: Select all
http://www.yootheme.com/themes/documentation/customizing/add-new-css-js-or-fonts
Post by bolobolojogja » Sun May 25, 2014 9:30 am
wweewww....it's very very nice...and very absolutely..i hope the code can put on my web..thank youtjdran wrote:Well, I tried but I couldn't find a solution.
This is the code:
What I wanted to do is to have a different css in each language for the <spec> and only. That's why I asked what do I have to put after "else".Code: Select all
<?php defined('_JEXEC') or die; $app = JFactory::getApplication(); //get params $tagline = $this->params->get('sitedescription'); JFactory::getDocument()->setGenerator(''); $lang = JFactory::getLanguage(); if ($lang->getTag() == 'el-GR') { JHtml::_('stylesheet', 'tdg/css/mySecondcss.css', array(), true); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/cleanstickyfooter.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/default.css" type="text/css" /> </head> <body> <div class="header"> <div class="logo"> <a href="index.php" title="Logo"> <img class="badge" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.png" width="100px" height="100px" title="logo" alt="The logo" /> </a> <div class="spec"> <div class="sitename"> <?php echo $app->getCfg('sitename');?> </div><!--/sitename--> <div class='tagline'> <?php echo $tagline; ?> </div><!--/tagline--> </div><!--/spec--> </div><!--/logo--> </div><!--/header-->
The problem is that I don't know how to substitute the "default.css" for the case that Greek language is turned on. I even tried different forms of the code JHTML::_ but it didn't seem to trigger anything.
Return to “Language - Joomla! 2.5”
© 2005 - 2021 Open Source Matters, Inc. All Rights Reserved.