Using Themes to Remove Branding
One advantage of customizing CSS in themes is that you can drastically change the appearance of the UI with very few overrides. CSS controls the spacing and layout of page content, so by changing a few rules, you can rearrange the default layout in many ways.
![note-icon-ns.png.ac51bea40867a93cab6b6ef2ac4d8abc.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) | Many CSS attributes affect spacing, including margins, borders, and edge and corner images. Also, the various div elements that make up the UI interact, making it hard to set the spacing correctly in some cases. Be sure to look at your overrides on all JasperReports Server pages to verify that the appearance is consistent and correct throughout the UI. |
If you embed JasperReports Server in your application, you may want to remove all branding and menus. The following example shows how to remove the banner and footer entirely using themes.
![warning-icon-ns_28x28.png.750150efd27ed96bb03afef939e522eb.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) | Removing the menus restricts your ability to navigate the JasperReports Server UI. If you need to revert to the default theme, change your theme for the session by adding &theme=default to the end of the current URL. You can also log in as an administrator, select Manage Server, then select Repository to locate and change themes. |
| 1. | Create a new theme in JasperReports Server. This example assumes you named the theme "embed". |
| 2. | On your computer, create the following CSS file and save it as overrides_custom.css. |
![warning-icon-ns_28x28.png.08a698d494ade48f01bca7162c4c34c3.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) | If you're rebranding JasperReports Server, you must use the phrase "Powered by TIBCO Jaspersoft" on any distributed reports or report portal. You may not remove or delete any of Jaspersoft's copyright or other proprietary notices. |
| 3. | Log into JasperReports Server as an administrator. |
| 4. | Select View > Repository and navigate to the location where you created your theme. |
| 5. | Right-click the embed theme in the repository and select Add Resource > File > CSS. |
| 6. | Select the overrides_custom.css file you created and enter overrides_custom.css for the Name and Resource ID. |
| 8. | Right-click the embed theme and select Set as Active Theme. The result is a theme that has no footers or menus. |
Basic Theme for Embedding |
![js-Customization-Embed_476x224.png.81e4f56d192b95b4d47cfd60a62e7d33.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) |
Recommended Comments
There are no comments to display.