Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Dhayzon on March 06, 2015, 08:42:24 PM

Title: how to add new styles css in new themes?
Post by: Dhayzon on March 06, 2015, 08:42:24 PM
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>';
Title: Re: how to add new styles css in new themes?
Post by: Diego Andrés on March 09, 2015, 03:10:56 AM
You can use the loadcss function