How to Set a Default Style with Paper Lantern

So you’ve developed a custom style for Paper Lantern and you’re ready to deploy it to your customers. Here’s how to set all customers on the box to your new custom style.


For the sake of conversation, assume your company’s name is “Acme Hosting” and the style you developed is called “Acme_Hosting”. Before beginning, make sure to upload the styles to a folder called “Acme_Hosting” in/var/cpanel/customizations/styled.

Step 1 – Setting a default style for all users on the box

ssh [email protected]
cd /var/cpanel/customizations/styled/

ln -s /var/cpanel/customizations/styled/Acme_Hosting default_style

When root specifies a default_style in this manner, cPanel & WHM will fall back to this setting when it can’t find any other preferences for resellers or users on the box.

Step 2 – Removing the ability for users to change their styles

Simply uncheck the ‘Change Style’ feature checkbox in customers’ package to prevent them from seeing the interface for picking another style.

The 'Change Style' feature checkbox in the Feature Manager

To read more about how to manage a user’s, reseller’s or root’s Style preferences for Paper Lantern, review the “Apply a style” page of the Paper Lantern documentation.

cPanel

The web hosting industry's most reliable management solution since 1997. With our first-class support and rich feature set, it's easy to see why our customers and partners make cPanel & WHM their hosting platform of choice. For more information, visit cPanel.net.

5 responses to “How to Set a Default Style with Paper Lantern”

  1. Kevin M. Dean says:

    It wasn’t specifically about this issue, but more in context of solving another style issue. Scroll to my last post in this thread. http://forums.cpanel.net/f8/webmail-navigation-bar-11-48-a-451921.html

  2. cpanelAdamF says:

    out of curiousity, which forum thread are you referring to?

  3. Kevin M. Dean says:

    I already posted this to a forum thread, but you’ll need to revise it on the documentation as well.

    https://documentation.cpanel.net/display/PLD/4+-+Apply+a+Style

  4. cpanelAdamF says:

    Thanks for catching that. I’ve removed the extraneous slash.

  5. Kevin M. Dean says:

    This didn’t work until I removed the trailing /

    ln -s /var/cpanel/customizations/styled/Acme_Hosting default_style

Leave a Reply