WHMUp 10 Posted January 11 Getting as example this article, I tried to do the same in a sidebar widget but it does not works: $secondarySidebar->addChild('mywidget', array( 'label' => 'Header Text', 'icon' => 'fas fa-user', 'bodyHtml' => 'Here is the main text', 'footerHtml' => 'Footer Text', 'extras' => array( 'color' => 'blue', ), )); Any idea on how to add the blue top border in the widger? Thank you Chris 0 Quote Share this post Link to post Share on other sites
brian! 3129 Posted January 12 22 hours ago, WHMUp said: Any idea on how to add the blue top border in the widget? I suspect you could do it your way if you modified sidebar.tpl to expect a color to be passed to it as an extra (and assuming the CSS was defined for it as per the panels). the way I would do it would be to use setClass... it would still work on v8.1 and Six... 1 Quote Share this post Link to post Share on other sites
WHMUp 10 Posted January 12 @brian! Once again you rock my world !! 🤩 https://www.whmup.com/ 0 Quote Share this post Link to post Share on other sites