Skip to content

Commit

Permalink
update icon troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
miljan-aleksic committed Jan 24, 2025
1 parent 6ab5ab0 commit 289459d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/essentials-for-yootheme-pro/addons/icons/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,29 @@ It could be that UIkit has been loaded twice, once by YOOtheme Pro and once agai

As a solution make sure only one UIkit instance is loaded, in Widgetkit that is possible in the Global Configuration.

## Icons set in HTML Are Not Loaded

Manually inputed icons in HTML as `uk-icon="..."` will not work as those would not be loaded by Essentials. A workaround is to force the loading of the icons you expect to use such way. In your child theme `config.php` file:

```php
<?php
use ZOOlanders\YOOessentials\Icon\IconLoader;

return [
'extend' => [
IconLoader::class => function (IconLoader $loader, $app) {
foreach ([
'myicons-foo-icon',
'mycollection-bar-icon',
...
] as $icon) {
$loader->loadIcon($icon);
}
},
],
];
```

## My Custom Icons Are Displayed Broken

You have custom icons for an Icon Collection or My Icons, but when being selected in the builder the icon is displayed broken.
Expand Down

0 comments on commit 289459d

Please sign in to comment.