# Site wide code - publishing

**URL:** <https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274>\
**Category:** RapidWeaver Classic\
**Created:** [September 19, 2017, 12:34am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274 "2017-09-19T00:34:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tevpot](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@tevpot](https://forums.realmacsoftware.com/u/tevpot)\
**Post date:** [September 19, 2017, 12:34am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/1 "2017-09-19T00:34:14Z")

</div>

When I apply site wide code (CSS), on preview it works as expected. When I publish however, the changes do not take effect.

Is there something I’m missing? I have tried publishing all files as well with no effect.

(Running RW 7.5)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![thang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/thang/32/303_2.png) [@thang](https://forums.realmacsoftware.com/u/thang)\
**Post date:** [September 19, 2017, 1:10am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/2 "2017-09-19T01:10:41Z")

</div>

Have you tried clearing your browser cache and refreshing the page?

---

<div class="post-metadata">

**Author:** ![tevpot](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@tevpot](https://forums.realmacsoftware.com/u/tevpot)\
**Post date:** [September 19, 2017, 1:15am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/3 "2017-09-19T01:15:32Z")

</div>

Yeah, still no luck. All my other page per page changes occur, just not the site wide code.

I know the css code is valid because it does work in preview

---

<div class="post-metadata">

**Author:** ![thang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/thang/32/303_2.png) [@thang](https://forums.realmacsoftware.com/u/thang)\
**Post date:** [September 19, 2017, 1:17am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/4 "2017-09-19T01:17:05Z")

</div>

Can you post a url?  
(more characters).

---

<div class="post-metadata">

**Author:** ![tevpot](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@tevpot](https://forums.realmacsoftware.com/u/tevpot)\
**Post date:** [September 19, 2017, 1:34am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/5 "2017-09-19T01:34:47Z")

</div>

@thang

[http://www.kingsdale.com/kah/boarding.htm](http://www.kingsdale.com/kah/boarding.htm)

The H1 tags should have a text-transform:uppercase

Thanks

---

<div class="post-metadata">

**Author:** ![thang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/thang/32/303_2.png) [@thang](https://forums.realmacsoftware.com/u/thang)\
**Post date:** [September 19, 2017, 2:05am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/6 "2017-09-19T02:05:52Z")

</div>

Yeah, I’m not seeing that CSS on that page.  
When i tried this in the browser page inspector it did work:

h1 {  
text-transform: uppercase;  
}

Does it work when you try it on the per page CSS?

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [September 19, 2017, 2:28am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/7 "2017-09-19T02:28:49Z")

</div>

If it’s in site wide, did you republish all files?

---

<div class="post-metadata">

**Author:** ![Pete](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@Pete](https://forums.realmacsoftware.com/u/Pete)\
**Post date:** [September 19, 2017, 3:25am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/8 "2017-09-19T03:25:06Z")

</div>

Could there be a problem with 7.5 not publishing updated files or actually all new files? I had to use FileZilla to get all my files on my server as 7.5 would not work for me in uploading newly created stacks. Went back to 7.3x

---

<div class="post-metadata">

**Author:** ![tevpot](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@tevpot](https://forums.realmacsoftware.com/u/tevpot)\
**Post date:** [September 19, 2017, 11:20am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/9 "2017-09-19T11:20:06Z")

</div>

Yes, the code works if I put it in the page CSS. I’ve also tried republishing all files.

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [September 19, 2017, 1:57pm UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/10 "2017-09-19T13:57:19Z")

</div>

I just had a look and the text-transform CSS is not making it to the page.  
So either there is;  
a publishing issue (the update is not being published) - can you export and ftp the site to find out?  
a cache issue ( the server is not serving the new content) - are you using cloud flair or similar?  
the CSS change is not being implemented for some reason - this seems unlikley if you can see the change in RW preview.

---

<div class="post-metadata">

**Author:** ![zeebe](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/zeebe/32/22007_2.png) [@zeebe](https://forums.realmacsoftware.com/u/zeebe)\
**Post date:** [September 19, 2017, 3:51pm UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/11 "2017-09-19T15:51:38Z")

</div>

Is it possible your page filename changed from .html to .php and you are not seeing the changes???

---

<div class="post-metadata">

**Author:** ![thang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/thang/32/303_2.png) [@thang](https://forums.realmacsoftware.com/u/thang)\
**Post date:** [September 19, 2017, 8:32pm UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/12 "2017-09-19T20:32:35Z")

</div>

I just tried a test with RW 7.5 and this CSS snippet was successfully uploaded and worked as expected when the CSS was in the site-wide code, as well as when I put the CSS in the page inspector code box.

So it appears that this is not a universal problem related to the version 7.5 update.

---

<div class="post-metadata">

**Author:** ![tevpot](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@tevpot](https://forums.realmacsoftware.com/u/tevpot)\
**Post date:** [September 20, 2017, 1:57am UTC](https://forums.realmacsoftware.com/t/site-wide-code-publishing/16274/13 "2017-09-20T01:57:54Z")

</div>

Thanks for all your assistance. I uploaded to my live folder on my server and it seemed to work. Not sure why it wouldn’t work within my test folder. I did check and there were no duplicate pages, i.e. one html and one php
