Want to use custom font.
-
I want to use my custom font in which i placed it "public/fonts/MyFont.tff".
i added this line of code:-
//-----------------------------------------------------//
@font-face {
font-family: 'MyFont';
src: url('/fonts/MyFont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
//-----------------------------------------------------//
to this file:-
"package/Webkul/Admin/src/Resource/view/components/layout/index.blade.php"
It is working great but when i applied this to shop package for frontend this is now working at all.
Is anyone tell me how to add custom font from localhost. -
Hello @Hridaye
If you have already done this for the admin panel, then you will need to do the same for the shop as well.
The file path for the shop is as follows:
packages/Webkul/Shop/src/Resources/views/components/layouts/index.blade.phpPlease add it there in the same way the other fonts have been added
Warm Regards
Team Bagisto -
@Rishabh-Webkul I did this and its working. font-family is override by the another static theme at the bottom. Resolved. Thankyou
-
@Hridaye You're Welcome..Keep Exploring.
Warm Regards
Team Bagisto