Bagisto Forum

    Bagisto

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

    How to add icon to admin panel?

    General Discussion
    5
    10
    2194
    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.
    • A
      acxy99 last edited by

      Is there anyway to add custom icon to admin side bar?

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        @acxy99
        yes you can create your own custom menu at admin end.
        follow this link https://devdocs.bagisto.com/1.x/packages/add_menu_in_admin.html

        if you still persist any issue please let us know.

        1 Reply Last reply Reply Quote 0
        • A
          acxy99 last edited by

          How do I configure the new icon that I desired to include in my project

          1 Reply Last reply Reply Quote 0
          • V
            Vaishali Agarwal last edited by

            @acxy99
            you can pass your own icon class in 'icon-class' inside admin-menu.php

            then make sure to run php artisan config:cache from the bagisto root directory

            1 Reply Last reply Reply Quote 0
            • A
              acxy99 last edited by acxy99

              May I know where the icon file is put and the configuration? because I follow your guide and it still not showing the icon.
              P/s: Icon file is svg file

              1 Reply Last reply Reply Quote 0
              • A
                aayush.bhatt172 last edited by aayush.bhatt172

                @acxy99
                You can put svg file to this directory.
                package name -> Resources -> assets -> images -> icon.svg

                After that make a css class in scss file. And use background: url(); to call your svg file.
                Later use that css class in menu.php or anywhere else you want.

                1 Reply Last reply Reply Quote 0
                • A
                  acxy99 last edited by acxy99

                  @aayush-bhatt172
                  Can do this in Webkul package? I can't change the dashboard icon also.

                  1 Reply Last reply Reply Quote 0
                  • devansh-webkul
                    devansh-webkul last edited by

                    Hi @acxy99,

                    You can do this in webkul package. Did you compile your assets in your admin package?

                    1 Reply Last reply Reply Quote 0
                    • A
                      acxy99 last edited by

                      @devansh-webkul yeas. just figured it out this morning. thank you for the reply 🙂

                      1 Reply Last reply Reply Quote 0
                      • F
                        Farhatkausar last edited by

                        @devansh-webkul said in How to add icon to admin panel?:

                        Did you compile your assets in your admin package?

                        I compile the asstes
                        98% after emitting SizeLimitsPlugin

                        DONE Compiled successfully in 7311ms 11:26:53

                                                                Asset      Size   Chunks             Chunk Names
                                                         /css/app.css   179 KiB  /js/app  [emitted]  /js/app
                                                           /js/app.js  1.42 MiB  /js/app  [emitted]  /js/app
                        

                        images/Coins.svg?239076bd8c0680f409663583df17ea52 2.48 KiB [emitted]
                        this error is occuring now.. Icon is not visible also

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