{"id":35882,"date":"2015-12-09T13:00:00","date_gmt":"2015-12-09T19:00:00","guid":{"rendered":"http:\/\/blog.cpanel.com\/?p=35882"},"modified":"2015-12-09T13:00:00","modified_gmt":"2015-12-09T19:00:00","slug":"update-your-style-for-version-54","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/update-your-style-for-version-54\/","title":{"rendered":"Update Your Style for Version 54"},"content":{"rendered":"
In cPanel and WHM version 54, the cPanel interface is changing in a lot of ways, which means the way you customize cPanel styles will also change. With a few more elements and classes, you can easily update your 11.52 style to 54. Before we updated to version 54, we applied a custom style to the Siteocity cPanel interface. When we updated our cPanel account to version 54, our Siteocity style looked like this: The most obvious broken element was the sidebar. To force it further down the page and avoid things overlapping, we added a few simple lines to the style.css file in our style’s directory:<\/p>\n In version 54, we now call the section headers on the Home<\/em> interface and the dashboard widget headers the same. This block of CSS will make headers more consistent across all interfaces:<\/p>\n background-image: -o-linear-gradient(top, #2C5B8E 0%, #6593BC 73%); To remove the black line below the header, add this to your CSS file:<\/p>\n Another small fix for this style was making sure that the tables on the inner pages were clearly legible. Since there’s a background image, we made these more opaque:<\/p>\n We used this CSS block to simplify the background image:<\/p>\n To finish it all off, we added a Webmail logo for those customers that use the Webmail interface. We made sure that the logo was named With these simple changes, we made our all of the interfaces in our Siteocity style compatible with cPanel & WHM version 54. In cPanel and WHM version 54, the cPanel interface is changing in a lot of ways, which means the way you customize cPanel styles will also change. With a few more elements and classes, you can easily update your 11.52 style to 54. Before we updated to version 54, we applied a custom style to […]<\/p>\n","protected":false},"author":77,"featured_media":64437,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49,61],"tags":[],"class_list":["post-35882","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-products","category-tips-and-tricks","post_format-post-format-image"],"acf":[],"yoast_head":"\n
\n<\/a>
\nAs an example, here’s what we did to update the Siteocity style to work in version 54.<\/p>\nBefore updating<\/h1>\n
\n<\/a>
\nNot too shabby, but a few things broke. The sidebar overlapped the header, the transparent progress bars weren’t working with the new background image, and the form fields needed to account for the new header.<\/p>\nSimple changes<\/h1>\n
aside#sidebar {
\ntop:91px;
\n}<\/code><\/p><\/blockquote>\n.widget-header {
\nborder: 0;<\/code><\/p>\n
\nbackground-image: -moz-linear-gradient(top, #2C5B8E 0%, #6593BC 73%);
\nbackground-image: -webkit-linear-gradient(top, #2C5B8E 0%, #6593BC 73%);
\nbackground-image: -ms-linear-gradient(top, #2C5B8E 0%, #6593BC 73%);
\nbackground-image: linear-gradient(to top, #2C5B8E 0%, #6593BC 73%);
\n}<\/p><\/blockquote>\n#wrap {
\nborder-top:1px solid black;
\nmargin-top:0;
\n}<\/code><\/p><\/blockquote>\ntr {
\nbackground:#FFFFFF;
\n}<\/code><\/p><\/blockquote>\nbody {
\nbackground:url(\/styled\/current_style\/footer.png) #FFFFFF bottom left fixed repeat-x;
\n}<\/code><\/p><\/blockquote>\nwebmail.png<\/code> and saved in
\/var\/cpanel\/brand<\/code> or it wouldn’t have worked.<\/p>\n
After updating<\/h1>\n
\n<\/a>
\nYou can fork the Siteocity style on Github<\/a> to see all of the changes that we made, or read our Guide to cPanel Style Development<\/a> for more examples and detailed instructions.<\/p>\n","protected":false},"excerpt":{"rendered":"