Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Custom Style Icons Not Displayed Properly

Discussion in 'User Experience' started by Oluwatosin, Feb 22, 2019.

  1. Oluwatosin

    Oluwatosin Member

    Joined:
    Jul 1, 2017
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Oluwatosin


    Can you try running the following and let me know if they begin to show up?


    Code:
    /usr/local/cpanel/bin/rebuild_sprites
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Oluwatosin

    Oluwatosin Member

    Joined:
    Jul 1, 2017
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Oluwatosin

    Oluwatosin Member

    Joined:
    Jul 1, 2017
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lagos, Nigeria
    cPanel Access Level:
    Root Administrator
    All paper_lantern icons are present in my theme directory
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice