News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

[Help] Adding any custom code to header leaves the Board Index font enlarged

Started by Nitesh Kunnath, August 10, 2012, 02:55:36 AM

Previous topic - Next topic

Nitesh Kunnath

I tried adding some codes at Load.php file and found that the text in board index is enlarged.
You can see live example here: http://test.gizmolord.com

The code I am adding:
echo'<script type="text/javascript" src="', $settings['default_theme_url'], '/jquery.js"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/jquery.easing.js"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/jquery.cookie.js"></script>';


The Load.php file after adding the above code
// Some basic information...
if (!isset($context['html_headers']))
$context['html_headers'] = '';
echo'<script type="text/javascript" src="', $settings['default_theme_url'], '/jquery.js"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/jquery.easing.js"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/jquery.cookie.js"></script>';

$context['menu_separator'] = !empty($settings['use_image_buttons']) ? ' ' : ' | ';
$context['session_var'] = $_SESSION['session_var'];
$context['session_id'] = $_SESSION['session_value'];


Any idea on this why the text is showing enlarged?

ziycon

If you remove this block of code does the font go back to normal? Did you make any other changes apart from this block of code?

Advertisement: