# Edit assets/global.js directly per editor & FTP

**URL:** <https://forums.realmacsoftware.com/t/edit-assets-global-js-directly-per-editor-ftp/38052>\
**Category:** RapidWeaver Classic\
**Created:** [March 9, 2021, 11:05am UTC](https://forums.realmacsoftware.com/t/edit-assets-global-js-directly-per-editor-ftp/38052 "2021-03-09T11:05:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![augustav](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@augustav](https://forums.realmacsoftware.com/u/augustav)\
**Post date:** [March 9, 2021, 11:05am UTC](https://forums.realmacsoftware.com/t/edit-assets-global-js-directly-per-editor-ftp/38052/1 "2021-03-09T11:05:04Z")

</div>

Hello,  
my customer uses Rapidweaver at his website, but up to now, I never had anything to do with rapidweaver. Now I have to include some JavaScript code on every page, and I found the file /assets/global.js which seems to be included globaly.  
Can I edit this file per editor and FTP, or have I to do all changes from the backend?  
If I can insert code at this file, my problem would be solved, and if I can do this per editor and FTP it would be very nice.

Thanks  
QoE

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [March 9, 2021, 11:21am UTC](https://forums.realmacsoftware.com/t/edit-assets-global-js-directly-per-editor-ftp/38052/2 "2021-03-09T11:21:38Z")

</div>

If you change it directly on the website, it will be overwritten at next export from RW.

So you should perform these changes inside RW.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [March 9, 2021, 11:26am UTC](https://forums.realmacsoftware.com/t/edit-assets-global-js-directly-per-editor-ftp/38052/3 "2021-03-09T11:26:40Z")

</div>

The best place to put the Javascript would be into the RapidWeaver Project File. Do you have access to the original RapidWeaver project? Or just the uploaded website?

Ideally you’d want to add the code to the project, and re-publish the website. Perhaps your customer could do this?

In theory you could add it to global.js as it’s used on every page. However, your changes might get wiped out the next time the customer uploads the website from RapidWeaver.

In short; It’s always best to make changes in the original RapidWeaver project file where possible.

Hope that helps!

**Update:** Seeing as this is often asked I’ve [added this information to our new online help guide](https://help.realmacsoftware.com/kb/guide/en/editing-html-in-a-published-website-5ta7WLV1BG/Steps/221589).

---

<div class="post-metadata">

**Author:** ![augustav](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@augustav](https://forums.realmacsoftware.com/u/augustav)\
**Post date:** [March 10, 2021, 8:54am UTC](https://forums.realmacsoftware.com/t/edit-assets-global-js-directly-per-editor-ftp/38052/4 "2021-03-10T08:54:43Z")

</div>

thanks,  
that was fast.  
The Link was realy helpful.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [April 9, 2021, 6:54pm UTC](https://forums.realmacsoftware.com/t/edit-assets-global-js-directly-per-editor-ftp/38052/5 "2021-04-09T18:54:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
