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.

Add JS/CSS scripts to cPanel theme

Discussion in 'User Experience' started by Alir3z4, Sep 10, 2015.

  1. Alir3z4

    Alir3z4 Registered

    Joined:
    Jan 16, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Is it possible to modify cPanel theme for adding custom JS or CSS scripts to the header or the footer of the cPanel theme.

    One of the purpose of doing this would be adding Google Analytics javascript or web site metrics.

    I read that it could be possible by cloning the theme and modify and upload a new one with the modified version. The downside would be that we have to do cloning, modifiying and uploading the theme each time that the original theme has a fix.

    The branding section of the WHM only allows changing very limited area of the cPanel.
     
  2. Alir3z4

    Alir3z4 Registered

    Joined:
    Jan 16, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,724
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. cPanelAdamF

    cPanelAdamF cPanel Product Owner
    Staff Member

    Joined:
    Mar 21, 2013
    Messages:
    174
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Houston TX
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    In this scenario, definitely don't maintain your own fork of Paper Lantern as that would mean that you'd be taking on all of the responsibility for keeping the UI up to date and secure.

    Instead, yeah, utilize the global_footer.html.tt UI Include to include your own content (in this case the <script> tag that you're looking for) onto every page of the interface.
     
Loading...

Share This Page