• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

How to add icon to admin panel?

General Discussion
5
10
2.2k
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 26 Nov 2020, 11:24

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

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by 26 Nov 2020, 12:33

      @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 26 Nov 2020, 12:52

        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 26 Nov 2020, 13:15

          @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 27 Nov 2020, 13:18 26 Nov 2020, 13:46

            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 27 Nov 2020, 13:25 27 Nov 2020, 13:25

              @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 27 Nov 2020, 13:36 27 Nov 2020, 13:32

                @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 4 Dec 2020, 09:46

                  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 4 Dec 2020, 10:57

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

                    1 Reply Last reply Reply Quote 0
                    • 10 months later
                    • F
                      Farhatkausar last edited by 11 Oct 2021, 06:52

                      @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
                      2 out of 10
                      • First post
                        2/10
                        Last post