# Override site 'head' html code per page

**URL:** <https://forums.realmacsoftware.com/t/override-site-head-html-code-per-page/20938>\
**Category:** RapidWeaver Classic\
**Created:** [July 6, 2018, 9:35pm UTC](https://forums.realmacsoftware.com/t/override-site-head-html-code-per-page/20938 "2018-07-06T21:35:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bioguy](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bioguy/32/109_2.png) [@Bioguy](https://forums.realmacsoftware.com/u/Bioguy)\
**Post date:** [July 6, 2018, 9:35pm UTC](https://forums.realmacsoftware.com/t/override-site-head-html-code-per-page/20938/1 "2018-07-06T21:35:46Z")

</div>

I’m adding [Open Graph](http://ogp.me) (og) previews for my site. It works great to put the meta code in the Head section within the Code Settings for the RW project. But, I’d like to have page-specific og images. I tried putting the meta line in the Head section for the individual page inspector hoping it might override the one for the whole site, but it does not.

Is there a simple way to override the site-wide head code for an individual page, or do I need to actually add the meta code to each page and delete the site-wide code?

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [July 6, 2018, 9:39pm UTC](https://forums.realmacsoftware.com/t/override-site-head-html-code-per-page/20938/2 "2018-07-06T21:39:49Z")

</div>

You would have to put the meta tags on each page. The sitewide stuff ends up on every page, and meta tags aren’t like CSS, you can’t override. There is only supposed to be one.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [July 6, 2018, 9:41pm UTC](https://forums.realmacsoftware.com/t/override-site-head-html-code-per-page/20938/3 "2018-07-06T21:41:31Z")

</div>

Now if some of the OG tags are the same in all pages you could put those in the sitewide area.

---

<div class="post-metadata">

**Author:** ![Bioguy](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bioguy/32/109_2.png) [@Bioguy](https://forums.realmacsoftware.com/u/Bioguy)\
**Post date:** [July 6, 2018, 9:42pm UTC](https://forums.realmacsoftware.com/t/override-site-head-html-code-per-page/20938/4 "2018-07-06T21:42:59Z")

</div>

> [@teefers](#):
>
> There is only supposed to be one.

Makes sense, thank you.

![there-can-be-only-one](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/9/960946d4adb52ea18a2ba50b3a3a1d820af0af36.jpg)

---

<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:** [August 6, 2018, 7:43am UTC](https://forums.realmacsoftware.com/t/override-site-head-html-code-per-page/20938/5 "2018-08-06T07:43:04Z")

</div>

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