Difference between revisions of "Rename Student Voice Module"

From UnionCloud Support
Jump to: navigation, search
(Page creation)
 
m (Orry Verducci moved page Rename student voice to Rename Student Voice Module: Clarified page title)
(No difference)

Revision as of 16:44, 15 December 2016

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;
    }
});