I'm using cakePhp 3.0.4 to build my application. As i understand, cakePhp 3 uses Zurb Foundation and i do not understand how to change default font(sans-serif)
default font is spesified in base.css file line 11:
/* font-family: sans-serif; *//* 1 */
font-family: sans-serif;
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
What i have tried so far:
1. Load font in base.css first line: @import url(http://fonts.googleapis.com/css?family=Open+Sans);
- Change base.css
font-family to 'Open sans', sans-serif;
Also i have tried:
load the font in default.ctp:
$this->Html->css('http://fonts.googleapis.com/css?family=Open+Sans:300,400,700')
Change base.css font-family to 'Open sans', sans-serif;
No success so far. Howto use Open sans -font correctly in cakePhp 3 application?
Thanks.
CSS
orSCSS
? – Thomas Taylor