Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

No icon display in Blazor Server app


public class KTIconsSettings
{
public static SortedDictionary<string, int> Config { get; set; } = new SortedDictionary<string, int>();

public static void init(IConfiguration configuration)
{
Config = configuration.GetSection("duotone-paths").Get<SortedDictionary<string, int>>() ?? Config;
Console.WriteLine(Config);
}
}

ok, after the init without any error but I could not see any icon on the website site. What am I missing here. Please help..Thx


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Never mind, I added this line in _keenthemes\config\ThemeSettings.json

"Css": [
"plugins/global/plugins.bundle.css",
"plugins/duotone/plugins.duotone.style.css",
"css/style.bundle.css"
],
and it works for now..



Hi,

Thank you for reaching out to us.

Keenicon set styles should be included in a plugins.bundle.css by default if you are using the latest version.

If you are using an older Metronic version then you can update Metronic styles and style building scripts or manually include icon styles.

Keenicon has three types of icons "duotone", "outline" and "solid", each icon type has its own style file.

Duotone file - src/plugins/keenicons/duotone/style.css
Outline file - src/plugins/keenicons/outline/style.css
Solid file - src/plugins/keenicons/solid/style.css

Regards,
Lauris Stepanovs,
Keenthemes Support Team



I find out my program didn't include this plugins for the icon (.svg)
_keenthemes/src/plugins/keenicons/duotone/selection.json. How can I include this plugins with my project? I try to register something like this

From program.cs
IConfiguration keeniconsConfiguration = new ConfigurationBuilder()
.AddJsonFile("_keenthemes/src/plugins/keenicons/duotone/selection.json")
.Build();

From KTIconSettings.cs

public static SortedDictionary<string, int> ConfigKeen { get; set; } = new SortedDictionary<string, int>();

public static void initKeenIcon(IConfiguration configuration)
{
ConfigKeen = configuration.GetSection("icon").Get<SortedDictionary<string, int>>() ?? ConfigKeen;
Console.WriteLine(ConfigKeen);
}

but it didn't see the "icon" property in selection.json

Any idea

Thx
Robert Nguyen


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(