News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

how to add new styles css in new themes?

Started by Dhayzon, March 06, 2015, 08:42:24 PM

Previous topic - Next topic

Dhayzon

is correct place another style is right below  of template_css ();?

<?php<meta charset="', $context['character_set'], '">';

// You don'
t need to manually load index.cssthis will be set up for youYou canof courseadd
// any other files you want, after template_css() has been run. Note that RTL will also be loaded for you.

// The most efficient way of writing multi themes is to use a master index.css plus variant.css files.
// If you've set them up properly (through $settings['theme_variants'], loadCSSFile will load the variant files for you.

// load in any css from mods or themes so they can overwrite if wanted
template_css();
echo'<link rel="stylesheet" type="text/css" href="'$settings['theme_url'], '/css/fontello.css" />';
// Save some database hits, if a width for multiple wrappers is set in admin.
if (!empty($settings['forum_width']))
echo '
<style type="text/css">#wrapper, .frame {width: '
$settings['forum_width'], ';}</style>';

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: