Advertisement:

Author Topic: how to add new styles css in new themes?  (Read 2193 times)

Offline Dhayzon

  • Sophist Member
  • *****
  • Posts: 1,165
  • Gender: Male
  • DhayZone RevolutioN
    • Dhayzon on GitHub
    • @dhayzon on Twitter
    • http://dhayzon.com/
how to add new styles css in new themes?
« on: March 06, 2015, 08:42:24 PM »
is correct place another style is right below  of template_css ();?

Code: [Select]
<?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>';

Online Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,348
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: how to add new styles css in new themes?
« Reply #1 on: March 09, 2015, 03:10:56 AM »
You can use the loadcss function

SMF Tricks - Free & Premium Responsive Themes for SMF.