Magento 2.1.4. Change font












0















I am trying to import a font (have Luma theme installed) with no success. Browsed similar threads about this, made changes in typography and variable files, but still can't get rid of the default 'Open sans' font.



Here's my css file:



@font-face {
font-family: 'Chalet';
font-style: normal;
font-weight: 400;
src: url('C:xampp/htdocs/testshop/vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.eot'); /* IE9 Compat Modes */
src: local('Chalet'), local('Chalet'),
url('../fonts/LEGO-Chalet-60-Tab-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */

url('../fonts/LEGO-Chalet-60-Tab-Regular.woff') format('woff'), /* Modern Browsers */
url('C:xampp/htdocs/testshop/vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf') format('truetype'), /* Safari, Android, iOS */

} (tried also full local path)


Any ideas?










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • did you get any solution ?

    – Camit1dk
    Jan 19 '18 at 10:34
















0















I am trying to import a font (have Luma theme installed) with no success. Browsed similar threads about this, made changes in typography and variable files, but still can't get rid of the default 'Open sans' font.



Here's my css file:



@font-face {
font-family: 'Chalet';
font-style: normal;
font-weight: 400;
src: url('C:xampp/htdocs/testshop/vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.eot'); /* IE9 Compat Modes */
src: local('Chalet'), local('Chalet'),
url('../fonts/LEGO-Chalet-60-Tab-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */

url('../fonts/LEGO-Chalet-60-Tab-Regular.woff') format('woff'), /* Modern Browsers */
url('C:xampp/htdocs/testshop/vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf') format('truetype'), /* Safari, Android, iOS */

} (tried also full local path)


Any ideas?










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • did you get any solution ?

    – Camit1dk
    Jan 19 '18 at 10:34














0












0








0








I am trying to import a font (have Luma theme installed) with no success. Browsed similar threads about this, made changes in typography and variable files, but still can't get rid of the default 'Open sans' font.



Here's my css file:



@font-face {
font-family: 'Chalet';
font-style: normal;
font-weight: 400;
src: url('C:xampp/htdocs/testshop/vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.eot'); /* IE9 Compat Modes */
src: local('Chalet'), local('Chalet'),
url('../fonts/LEGO-Chalet-60-Tab-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */

url('../fonts/LEGO-Chalet-60-Tab-Regular.woff') format('woff'), /* Modern Browsers */
url('C:xampp/htdocs/testshop/vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf') format('truetype'), /* Safari, Android, iOS */

} (tried also full local path)


Any ideas?










share|improve this question
















I am trying to import a font (have Luma theme installed) with no success. Browsed similar threads about this, made changes in typography and variable files, but still can't get rid of the default 'Open sans' font.



Here's my css file:



@font-face {
font-family: 'Chalet';
font-style: normal;
font-weight: 400;
src: url('C:xampp/htdocs/testshop/vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.eot'); /* IE9 Compat Modes */
src: local('Chalet'), local('Chalet'),
url('../fonts/LEGO-Chalet-60-Tab-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */

url('../fonts/LEGO-Chalet-60-Tab-Regular.woff') format('woff'), /* Modern Browsers */
url('C:xampp/htdocs/testshop/vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf') format('truetype'), /* Safari, Android, iOS */

} (tried also full local path)


Any ideas?







magento2 fonts






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 25 '17 at 12:00









Teja Bhagavan Kollepara

2,95841847




2,95841847










asked Apr 4 '17 at 9:31









marilena6marilena6

456




456





bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • did you get any solution ?

    – Camit1dk
    Jan 19 '18 at 10:34



















  • did you get any solution ?

    – Camit1dk
    Jan 19 '18 at 10:34

















did you get any solution ?

– Camit1dk
Jan 19 '18 at 10:34





did you get any solution ?

– Camit1dk
Jan 19 '18 at 10:34










1 Answer
1






active

oldest

votes


















0














Magento Docs
http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/using-fonts.html



Looks like the path is not correct
should be




app/design/frontend/Vendor/theme/web/fonts







share|improve this answer
























  • Already tried that. Actually this path in my installation is app/design/frontend/Magento and then empty.

    – marilena6
    Apr 4 '17 at 10:00











  • So then You installed via composer. path is vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf so use @font-path: '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf',

    – Martins
    Apr 4 '17 at 10:07













  • '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf - In which file will this go? css or other file? Because I tried both the css and typography.less and still doesn't work, I'm frustrated... :/

    – marilena6
    Apr 5 '17 at 8:42













  • so this worked out ?

    – Martins
    Apr 5 '17 at 8:42











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f167543%2fmagento-2-1-4-change-font%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Magento Docs
http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/using-fonts.html



Looks like the path is not correct
should be




app/design/frontend/Vendor/theme/web/fonts







share|improve this answer
























  • Already tried that. Actually this path in my installation is app/design/frontend/Magento and then empty.

    – marilena6
    Apr 4 '17 at 10:00











  • So then You installed via composer. path is vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf so use @font-path: '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf',

    – Martins
    Apr 4 '17 at 10:07













  • '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf - In which file will this go? css or other file? Because I tried both the css and typography.less and still doesn't work, I'm frustrated... :/

    – marilena6
    Apr 5 '17 at 8:42













  • so this worked out ?

    – Martins
    Apr 5 '17 at 8:42
















0














Magento Docs
http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/using-fonts.html



Looks like the path is not correct
should be




app/design/frontend/Vendor/theme/web/fonts







share|improve this answer
























  • Already tried that. Actually this path in my installation is app/design/frontend/Magento and then empty.

    – marilena6
    Apr 4 '17 at 10:00











  • So then You installed via composer. path is vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf so use @font-path: '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf',

    – Martins
    Apr 4 '17 at 10:07













  • '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf - In which file will this go? css or other file? Because I tried both the css and typography.less and still doesn't work, I'm frustrated... :/

    – marilena6
    Apr 5 '17 at 8:42













  • so this worked out ?

    – Martins
    Apr 5 '17 at 8:42














0












0








0







Magento Docs
http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/using-fonts.html



Looks like the path is not correct
should be




app/design/frontend/Vendor/theme/web/fonts







share|improve this answer













Magento Docs
http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/using-fonts.html



Looks like the path is not correct
should be




app/design/frontend/Vendor/theme/web/fonts








share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 4 '17 at 9:56









MartinsMartins

1448




1448













  • Already tried that. Actually this path in my installation is app/design/frontend/Magento and then empty.

    – marilena6
    Apr 4 '17 at 10:00











  • So then You installed via composer. path is vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf so use @font-path: '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf',

    – Martins
    Apr 4 '17 at 10:07













  • '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf - In which file will this go? css or other file? Because I tried both the css and typography.less and still doesn't work, I'm frustrated... :/

    – marilena6
    Apr 5 '17 at 8:42













  • so this worked out ?

    – Martins
    Apr 5 '17 at 8:42



















  • Already tried that. Actually this path in my installation is app/design/frontend/Magento and then empty.

    – marilena6
    Apr 4 '17 at 10:00











  • So then You installed via composer. path is vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf so use @font-path: '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf',

    – Martins
    Apr 4 '17 at 10:07













  • '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf - In which file will this go? css or other file? Because I tried both the css and typography.less and still doesn't work, I'm frustrated... :/

    – marilena6
    Apr 5 '17 at 8:42













  • so this worked out ?

    – Martins
    Apr 5 '17 at 8:42

















Already tried that. Actually this path in my installation is app/design/frontend/Magento and then empty.

– marilena6
Apr 4 '17 at 10:00





Already tried that. Actually this path in my installation is app/design/frontend/Magento and then empty.

– marilena6
Apr 4 '17 at 10:00













So then You installed via composer. path is vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf so use @font-path: '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf',

– Martins
Apr 4 '17 at 10:07







So then You installed via composer. path is vendor/magento/theme-frontend- luma/web/fonts/LEGO-Chalet-60-Tab-Regular.ttf so use @font-path: '@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf',

– Martins
Apr 4 '17 at 10:07















'@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf - In which file will this go? css or other file? Because I tried both the css and typography.less and still doesn't work, I'm frustrated... :/

– marilena6
Apr 5 '17 at 8:42







'@{baseDir}fonts/LEGO-Chalet-60-Tab-Regular.ttf - In which file will this go? css or other file? Because I tried both the css and typography.less and still doesn't work, I'm frustrated... :/

– marilena6
Apr 5 '17 at 8:42















so this worked out ?

– Martins
Apr 5 '17 at 8:42





so this worked out ?

– Martins
Apr 5 '17 at 8:42


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f167543%2fmagento-2-1-4-change-font%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto