Hi Myra
found a solution to the problem I was having, here it is if anyone is interested.
The site is for a group of companies, each company has it own specific key colour, the interface will be the same, I didn't want to create 8 separate master pages, I tried this even with a parent linked to the master pages for consistent elements across all masters, but became unwieldy.
I created 1 master page for the interface, with a text box with an alt of 'Current Company' (which I will use as part of a breadcrumb for each page). On each page I changed the content of the text box of 'Current Company' to 'Company 1', 'Company 2', Company 3' etc. etc.
then linked a js file to the resources section of the export dialog box.
Here's a snippet of the js file I created which works as expected, I'm not a coder so used Chat GPT to help write the specific code.
$(document).ready(function () {
var text = $("[alt='Current Company']").text().trim();
var $pageLogoImg = $('img[alt="Page Logo"]');
var $phoneIconImg = $('img[alt="Phone Icon"]');
var $markerIconImg = $('img[alt="Marker Icon"]');
var $clockIconImg = $('img[alt="Clock Icon"]');
var $24HourIconImg = $('img[alt="24 Hour Icon"]');
var $footerLogoImg = $('img[alt="Footer Logo"]');
// Group Dark Green - 4b6b45, Group Light Green - 7d9c79, Group Light Light Green - cbd3c8
if (text === "Group of Companies") {
$("[alt='Header Coloured Stripe']").css("background-color", "#4b6b45");
$("[alt='Footer Coloured Stripe']").css("background-color", "#4b6b45");
$("[alt='Side Panel Background']").css("background-color", "#cbd3c8");
$pageLogoImg.attr('src', 'CK_Assets/Images/Group_Logo.png');
$phoneIconImg.attr('src', 'CK_Assets/Images/Group_Phone_Icon.png');
$markerIconImg.attr('src', 'CK_Assets/Images/Group_Marker_Icon.png');
$clockIconImg.attr('src', 'CK_Assets/Images/Group_Clock_Icon.png');
$24HourIconImg.attr('src', 'CK_Assets/Images/Group_24Hour_Icon.png');
$footerLogoImg.attr('src', 'CK_Assets/Images/Group_Logo_WOB.png');
}
else if (text === "Company 1") {
$("[alt='Header Coloured Stripe']").css("background-color", "#62b34f");
$("[alt='Footer Coloured Stripe']").css("background-color", "#62b34f");
$("[alt='Side Panel Background']").css("background-color", "#d5e7cd");
$pageLogoImg.attr('src', 'CK_Assets/Images/Company_1_Logo.png');
$phoneIconImg.attr('src', 'CK_Assets/Images/Company_1_Phone_Icon.png');
$markerIconImg.attr('src', 'CK_Assets/Images/Company_1_Marker_Icon.png');
$clockIconImg.attr('src', 'CK_Assets/Images/Company_1_Clock_Icon.png');
$24HourIconImg.attr('src', 'CK_Assets/Images/Company_1_24Hour_Icon.png');
$footerLogoImg.attr('src', 'CK_Assets/Images/Company_1_Logo_WOB.png');
$('.Footer-Button-Over, .Footer-Button-Click').css('background', '#62b34f');
}
else if (text === "Company 2") {
$("[alt='Header Coloured Stripe']").css("background-color", "#67a5b0");
$("[alt='Footer Coloured Stripe']").css("background-color", "#67a5b0");
$("[alt='Side Panel Background']").css("background-color", "#ccf4f3");
$pageLogoImg.attr('src', 'CK_Assets/Images/Company_2_Logo.png');
$phoneIconImg.attr('src', 'CK_Assets/Images/Company_2_Phone_Icon.png');
$markerIconImg.attr('src', 'CK_Assets/Images/Company_2_Marker_Icon.png');
$clockIconImg.attr('src', 'CK_Assets/Images/Company_2_Clock_Icon.png');
$24HourIconImg.attr('src', 'CK_Assets/Images/Company_2_24Hour_Icon.png');
$footerLogoImg.attr('src', 'CK_Assets/Images/Company_2_Logo_WOB.png');
$('.Footer-Button-Over, .Footer-Button-Click').css('background', '#67a5b0');
}
etc etc
ChrisK