Custom Style Icons Not Displayed Properly

Oluwatosin

Member
Jul 1, 2017
8
0
1
Lagos, Nigeria
cPanel Access Level
Root Administrator
I (and a colleague) were able to make a new theme for my cPanel following guides but I can't make icons of non-cPanel plugins show up. Icons for Wordpress Manager, Cloudflare, Softaculous, WHMSonic completely disappear when I switch over to the new theme but show up perfectly fine on Paper Lantern.

Is there a hook of some sort that's required to display non-cPanel plugin icons on custom themes ?

Secondly what are the possibilities of just just running a script to pick up the icons from Paper Lantern since that works perfectly?

Any explanation, URL or guide is appreciated.

Thanks
 

Oluwatosin

Member
Jul 1, 2017
8
0
1
Lagos, Nigeria
cPanel Access Level
Root Administrator
Code:
# /usr/local/cpanel/bin/rebuild_sprites
Searching for themes that support the cpanel plugins system................Done

Rebuild Complete
I ran the command but the issue persists. Non-cpanel icons are not showing yet.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hi @Oluwatosin


How about if you run with the following flags?

Code:
/usr/local/cpanel/bin/sprite_generator --theme paper_lantern --style mystyle
What's present in your style directory's icons subdirectory?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hi @Oluwatosin

Based on the documentation here: Guide to cPanel Interface Customization - Custom Icons and Logos - Developer Documentation - cPanel Documentation you'll only want to put the icons you want to replace there:

Add custom icons

To replace the default cPanel icons with your own icons, perform the following steps:

  1. In your style's directory, create the icons subdirectory.
  2. Save your icons with the same name and file extension as the feature icons that you wish to replace.
    • For example, to replace the File Manager icon, save a .png version of the icon as the file_manager.png file (cPanel & WHM version 58 and earlier) or an .svg version of the icon as the file_manager.svg file (cPanel & WHM version 60 and later).
    • For a full list of feature icon names, read our Guide to cPanel Interface Customization - Appkeys documentation.
After you apply a style that uses custom icons, run the following command, where mystyle represents the style name:




/usr/local/cpanel/bin/sprite_generator --theme paper_lantern --style mystyle
The /usr/local/cpanel/bin/sprite_generator utility integrates your icons into the new icon set.
 
  • Like
Reactions: AzeDK