Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Want to use custom font.

    General Discussion
    2
    4
    72
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Hridaye last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        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.php

        Please add it there in the same way the other fonts have been added

        fonts.png

        Warm Regards
        Team Bagisto

        H 1 Reply Last reply Reply Quote 0
        • H
          Hridaye @Rishabh-Webkul last edited by

          @Rishabh-Webkul I did this and its working. font-family is override by the another static theme at the bottom. Resolved. Thankyou

          1 Reply Last reply Reply Quote 0
          • Rishabh-Webkul
            Rishabh-Webkul last edited by

            @Hridaye You're Welcome..Keep Exploring.

            Warm Regards
            Team Bagisto

            1 Reply Last reply Reply Quote 0
            • First post
              Last post