Modifying Website Title #93
-
Hello, I'd like to modify the website's title from I've found in titleUpdater.cs where the title is updated, but if I try to change the values, the website breaks (which is what the Custom Content Plugin says will happen, so that's fair). I've been tinkering around with the Custom Content Plugin, trying to get any change to go into effect, but haven't gotten anything to work. Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Unfortunately I didn't put a whole lot of thought into how scripts might take over the formatting of the page's title. However, you can replace any of the site's files with your own versions if you want to - you just need to go through the custom content plugin to do it.
You might need to restart the server depending on whether you have bundling switched on, I can't remember... maybe restart it just in case :) Any files that are in your custom folder will be served instead of the original, so you should ideally only have custom versions in there - i.e. don't copy the entire site across to your custom folder. Just copy the one JS file that you want to change. In general you should try to avoid replacing entire JavaScript files if you can help it. But with that said, the title updater doesn't change very often and it's very small, so it shouldn't be too difficult to tell whether you need to take a new version of it after an update. |
Beta Was this translation helpful? Give feedback.
Unfortunately I didn't put a whole lot of thought into how scripts might take over the formatting of the page's title. However, you can replace any of the site's files with your own versions if you want to - you just need to go through the custom content plugin to do it.
c:\vrs-custom
script
vrs
titleUpdater.js
(that's the.js
file, not the .ts file that it was transpiled from) into thevrs
folder (e.g.c:\vrs-custom\script\vrs
).c:\vrs-…