Remove community themes
To make a specific community theme unavailable to the users, or to disable all community themes, we can do so by editing the Communities configuration file, communities-config.xml.
The list of themes displayed in the theme palette in Communities corresponds to the list of themes defined in the Communities configuration file, communities-config.xml. To remove a specific theme from the palette, we can do so by removing the theme or commenting out the relevant section in the configuration file. Or, if you have applied corporate branding to all of Connections, and to disable community theming so the branding applies to all communities, we can do so by removing all of the theme information from communities-config.xml. When you remove all of the theme information, the option to choose a theme no longer displays when users are creating or editing communities.
To remove community themes.
- Check out config files cd app_server_root/profiles/Dmgr01/bin
./start wsadmin.sh
execfile("communitiesAdmin.py")
CommunitiesConfigService.checkOutConfig("/tmp", "cell_name")To determine cell: print AdminControl.getCell()
- Edit communities-config.xml
- To remove a specific theme, find the <comm:theme> element that corresponds to the theme to remove, and either delete that section or comment it out.
For example:
<!-- <comm:theme> <comm:themeUuid>corporate</comm:themeUuid> <comm:displayNameKey>label.theme.name.corporate</comm:displayNameKey> <comm:thumbnailUrl>/images/CorporateTheme.jpg</comm:thumbnailUrl> </comm:theme> -->To remove all community themes, delete or comment out all of the <comm:theme> elements in the file.
- Save communities-config.xml.
- After making changes, check the configuration files back in, and we must do so during the same wsadmin session in which you checked them out for the configuration changes to take effect. You must also stop and restart the Communities server. See Applying property changes in Communities for information about how to save and apply the changes.
Parent topic:
Add a custom theme to Communities
Related:
Apply property changes in Communities