Rename Student Voice Module

From UnionCloud Support
Revision as of 16:44, 15 December 2016 by Orry Verducci (talk | contribs) (Orry Verducci moved page Rename student voice to Rename Student Voice Module: Clarified page title)
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.

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