Skip to content

Commit

Permalink
Merge pull request #363 from amit-webkul/docs-fixes
Browse files Browse the repository at this point in the history
Fixed Issue #362
  • Loading branch information
devansh-webkul authored Dec 13, 2023
2 parents 2e637f1 + d0468e6 commit a94ed3f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/2.x/packages/add-menu-in-admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To ensure that the admin menu includes the necessary configuration, follow these
'name' => 'Blogs',
'route' => 'blog.admin.index',
'sort' => 2,
'icon' => 'blog-icon',
'icon' => 'icon-blog',
],
];
```
Expand All @@ -45,13 +45,15 @@ To ensure that the admin menu includes the necessary configuration, follow these

## Add Menu Icon

5. To add the menu icon styling, you can write your own css inside **`assets/css/app.css`** file.
5. To add the menu icon, you need to add the icon font inside the **`assets/fonts/font.woff`** file and then you need to add the icon code inside the **`assets/css/app.css`** file.

First, open the **`assets/fonts/font.woff`** file and add the menu icon font to it. Then, create a class in the **`assets/css/app.css`** file to use the icon.

- For example

```css
.blog-icon {
background-image: url("../images/blog-icon.svg");
.icon-blog::before {
content: "\e929"; /* Your Icon Code */
}
```

Expand Down

0 comments on commit a94ed3f

Please sign in to comment.