Theming Paper Lantern
Hi,
I'm trying to work out how to theme the Paper Lantern theme (I'm assuming it would be stupid to theme X3 as that is/going to be deprecated).
Anyway I am not sure of the approach to take:
* Should I clone the theme and start from scratch - we want to make some fairly significant changes. If so, are there are any up-to-date guides for this?
* Should I just create a "style" as per
-
This post should be of some use to you: cPanel Branding Basics: A Guide for Reseller Hosts 0 -
Thanks, that's really useful, maybe it should be referenced in the official docs. I do have some questions after reading this: * Will creating a style in 'var/cpanel/reseller/' create it for all our reseller accounts? We only want it to apply to a test account for now. * Don't seem to have the change style option - "Change your style to your own custom style (User Profile > change style)" in Paper Lantern, might be because I haven't actually created a custom style yet. 0 -
The docs are linked there in the related blog post mentioned in that thread. Don't seem to have the change style option
When you create Packages, you need to add a Feature list to it. In that Feature list is an option you can enable or not for changing style.0 -
The docs are linked there in the related blog post mentioned in that thread. When you create Packages, you need to add a Feature list to it. In that Feature list is an option you can enable or not for changing style.
Hi Infopro, Do you know how cPanel hides the sidebar in the retro theme (for paper lantern)? The entire HTML section is not even present in the source and I cannot work out how it's been done. I looked at the retro theme source files in /usr/local/cpanel/base/frontend/paper_lantern/styled/retro but didn't get any clues.0 -
Hides? Not sure what you mean, its not hidden. It can be collapsed when you click Collapse Stats link at bottom of it. TBH, and someone smarter than me will hopefully correct my mistake here, but I don't think you should spend much time with the retro style. Paper Lantern is the new default. 0 -
Hides? Not sure what you mean, its not hidden. It can be collapsed when you click Collapse Stats link at bottom of it. TBH, and someone smarter than me will hopefully correct my mistake here, but I don't think you should spend much time with the retro style. Paper Lantern is the new default.
Sorry I mean the retro style based on the Paper Lantern theme. It just seems to a styles.css file mainly so not sure how they managed to completely remove the #sidebar. It's like it is running extra javascript somewhere or something.0 -
Sorry I mean the retro style based on the Paper Lantern theme. It just seems to a styles.css file mainly so not sure how they managed to completely remove the #sidebar. It's like it is running extra javascript somewhere or something.
For anyone else wondering I worked it out, /usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl includes the following:[%- IF CPANEL.current_style == 'retro' -%] [% INCLUDE home/index_retro.tt %] [% ELSE %] [%- INCLUDE home/index.tt -%] [% END %]
This loads a different template for the retro style. This is exactly what I want to do but don't think I should edit this file so back to the drawing board.0
Please sign in to leave a comment.
Comments
7 comments