The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Paper Lantern, sizing icons and hiding 'change style'

Discussion in 'User Experience' started by niemie, Jul 10, 2015.

  1. niemie

    niemie Registered

    Joined:
    Aug 24, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I've been customizing Paper Lantern a bit but have 2 questions on things I haven't figured out an easy way to do:

    1) Resizing / shrinking down the icons to something more like 32px x 32px

    2) Hiding the 'Change Style' menu item as I don't want our users to be able to do so.


    Thanks for any help!
     
  2. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    262
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    #2 - In WHM, go to Packages » Feature Manager and edit your Feature List and uncheck "Change Style".
     
    #2 kdean, Jul 10, 2015
    Last edited by a moderator: Aug 6, 2015
  3. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    I believe that in the PL discussion of how to create custom css there is a way to have your styles use custom icons. However there is no way that I can find to modify the two standard PL styles at all and no way to disable those two styles like you could in X3. Thsi is one of several areas where PL is just not yet finished and not yet ready for production use.

    https://documentation.cpanel.net/display/PLD/2+-+Stylesheet+Examples


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

    1. In your style's main directory, create a subdirectory named icons.
    2. Save your icons with the same name as the existing feature icons that you wish to replace. For example, to replace the File Manager icon, save your icon as file_manager.png. For a full list of feature icon names, read our Appkey List for cPanel's Sprite Generator documentation.
    3. Run the following command to initiate the sprite_generator:

      /usr/local/cpanel/bin/sprite_generator --user $username --theme paper_lantern --style $your_style
      Note

      Make sure that you replace $username and $your_style with your own username and style name.

    4. The sprite_generator will integrate your icons into the new icon set.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page