Custom CSS

mattypants's picture
mattypants
Sun, 03/20/2016 - 18:27
#1
Custom CSS

Which is the best CSS file to add my own custom styles to the theme? I prefer to use external styles over internal ones.

thanks

khoa's picture
khoa
Sun, 03/20/2016 - 21:00

Hello,

The best way I think is that you create a new CSS file. Then you put it into sites\all\themes\md_structure\css\front. And open html.preprocess.inc (sites\all\themes\md_structure\inc\front), add this code:

 drupal_add_css("{$path_theme}/css/front/your_file_name.css");

below this code:

drupal_add_css("{$path_theme}/css/front/main.css");

Thank you!

mattypants's picture
mattypants
Sun, 03/20/2016 - 23:29

Ok, great, I'll do that then, thanks!

mattypants's picture
mattypants
Mon, 03/21/2016 - 01:03

Is there a quick setting for paragraph font size, or only in the css? There seems to be a few lines of CSS that specifies font-size:14px

khoa's picture
khoa
Mon, 03/21/2016 - 02:39

Hello,

You can use CSS or use the settings in Awecontent when creating an objects, sections....

Thanks!

mattypants's picture
mattypants
Mon, 03/21/2016 - 17:01

Ok, I will do that then. Thank you

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.