Skip to main content

Why isn't the sprite/CSS from custom theme used if the theme is applied for a user?

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! sorry for the delayed reply, but I wanted to reach out to our user experience team before I replied here to make sure I had all the correct information. I confirmed that it is normal and expected for the theme name to not show up in the request URL. We also don't believe the data inside /var/cpanel/customizations to be related to the issue, since that area would be specific to customizing Paper Lantern itself, and not related to one of the custom themes. The targets of the symlinks for current_style and default_style will depend on where the sprites ended up. If you completely copied Paper Lantern to create their custom theme, the images would likely be in base/frontend/custom_theme/styled/basic/icons to get it to work. The spritesheet generator should then create the sprites in base/frontend/custom_theme/styled/basic/sprites If you need more details than that, it would likely be best to open a ticket so we can check the theme implementation directly on the server.
    0
  • sangeeths
    [QUOTE] The targets of the symlinks for current_style and default_style will depend on where the sprites ended up. If you completely copied Paper Lantern to create their custom theme, the images would likely be in base/frontend/custom_theme/styled/basic/icons to get it to work. The spritesheet generator should then create the sprites in base/frontend/custom_theme/styled/basic/sprites
    This is correct. And it works just fine, as in the sprites get generated in the right folder. Except the spite file and the CSS from these theme directories don't end up getting used. Here's what's shown for CSS when I use "View Source" after logging in as a cPanel user for whom the theme custom_theme
    was chosen during account creation: The URL for this page is something like: https://internal.company.com:2083/cpsessXXXXX/frontend/custom_theme/index.html?login=1&post_login=XXXXX
    And I can verify the theme the CSS belongs to by modifying the sprite CSS and adding a comment on top in both paper_lantern and custom_theme directories. The one that gets loaded is the paper_lantern one. Is there a step I'm missing, beyond selecting a custom theme from the select menu during account creation for the correct sprites to be picked up?
    0
  • cPRex Jurassic Moderator
    I did a bit of testing and couldn't come up with much on the CSS issue. It would be best to submit a ticket to our team to see if we can replicate with exact steps, and if we need to get the documentation updated.
    0

Please sign in to leave a comment.