hi
is there any way to use different fonts for each language in opencart 2.3.0.2
thanks in advance
Hi
yes, here is an example:
edit this file:
catalog\controller\common\header.php
Find:
Add after:
Edit your theme header file:
catalog\view\theme\*\template\common\header.tpl
Find:
Add before it:
yes, here is an example:
edit this file:
catalog\controller\common\header.php
Find:
Code: Select all
$this->load->language('common/header');
Code: Select all
$data['language_code'] = $this->session->data['language'];
catalog\view\theme\*\template\common\header.tpl
Find:
Code: Select all
</head>
Code: Select all
<style type="text/css">
<?php if ($language_code == 'en-gb') { ?>
body {font-family: serif;}
<?php } ?>
<?php if ($language_code == 'fa-ir') { ?>
body {font-family: tahoma;}
<?php } ?>
</style>
Who is online
Users browsing this forum: No registered users and 5 guests