Rename Student Voice Module

From UnionCloud Support
Jump to: navigation, search

Many Union's like to brand their Student Voice module with a different name (e.g. Big Ideas).

The below code snippet, which should be copied in to Global Javascript, allows your Union to rename all the titles on the Student Voice module to your local brand name. Make sure you change "PUT YOUR NAME HERE" to your local brand name.

1 $(function() {
2     if (window.location.pathname.substring(0, 16) == '/thestudentvoice' && window.location.pathname.length <= 17) {
3         var svName = 'PUT YOUR NAME HERE';
4         $('.uc-heading-title span').html(svName);
5         var siteName = document.title.split('@')[1];
6         document.title = svName + ' @' + siteName;
7     }
8 });