# Can't get discourse embedded properly into Ghost

**URL:** https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074
**Category:** Support
**Tags:** embedding
**Created:** [February 10, 2015, 9:44am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074 "2015-02-10T09:44:04Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![ArsArtificia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arsartificia/32/38747_2.png) [@ArsArtificia](https://meta.discourse.org/u/ArsArtificia)
#### Post date: [February 10, 2015, 9:44am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/1 "2015-02-10T09:44:04Z")

</div>

Hi all,  
I followed @eviltrout 's awesome tutorial here [http://eviltrout.com/2014/01/22/embedding-discourse.html](http://eviltrout.com/2014/01/22/embedding-discourse.html) but can’t get it to work properly.

This is how it looks embedded :

```
<div id="discourse-comments"></div>
<script type="text/javascript">
var discourseUrl = "http://discourse.ars-artificia.com/",
discourseEmbedUrl = 'http://ars-artificia.com/Spring cleaning';
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);})();
</script>

```

see [https://ars-artificia.com/spring-cleaning/](https://ars-artificia.com/spring-cleaning/) for reference.  
My discourse is set up accordingly. I am using ghost to host my blog - I don’t get any changes.  
Thanks in advance !

For reference here is how @codinghorror embedded discourse in his blog

```
</article>
<div id="discourse-comments"></div>
<script type="text/javascript">
      var discourseUrl = "http://discourse.codinghorror.com/",
          discourseEmbedUrl = 'http://blog.codinghorror.com/the-god-login/';

      (function() {
        var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
          d.src = discourseUrl + 'javascripts/embed.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
      })();
    </script>
</main>

```

and this is my current version:

```
</footer>
    </article>
	<div id="discourse-comments"></div>
	<script type="text/javascript">
		var discourseUrl = "http://discourse.ars-artificia.com/",
		discourseEmbedUrl = 'https://ars-artificia.com/spring-cleaning/';
		(function() {
			var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
			d.src = discourseUrl + 'javascripts/embed.js';
			(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
		})();
	</script>

```

**Edit:** Found the solution !!  
As my discourse instance isn’t ssl secured yet, I embedded non-secure content on a secure website. This was blocked in my browser (firefox) because of security issues ! In e.g. interntet explorer everything works fine 😄 thanks a lot for the help, @bartv and @Mittineague !  
ISSUE SOLVED

**Edit:** Grabbed some new ssl certs and verified everything is working properly now. Remember that you can’t simply embed non secure content into a https site !

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [February 10, 2015, 10:02am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/2 "2015-02-10T10:02:34Z")

</div>

> [@ArsArtificia](#):
>
> but can’t get it to work properly.

Change the forum so it doesn’t require being logged it to access it.

---

<div class="post-metadata">

### Author: ![ArsArtificia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arsartificia/32/38747_2.png) [@ArsArtificia](https://meta.discourse.org/u/ArsArtificia)
#### Post date: [February 10, 2015, 10:11am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/3 "2015-02-10T10:11:02Z")

</div>

Thanks for the suggestion. Porting the posts worked anyway - I changed it but the comments still do not appear. Might be an issue with the ghost templating

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [February 10, 2015, 10:17am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/4 "2015-02-10T10:17:09Z")

</div>

“Spring cleaning” is not the same as “spring-cleaning”

> Make sure discourseEmbedUrl is the canonical URL to the page where you are embedding Discourse.

---

<div class="post-metadata">

### Author: ![ArsArtificia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arsartificia/32/38747_2.png) [@ArsArtificia](https://meta.discourse.org/u/ArsArtificia)
#### Post date: [February 10, 2015, 10:25am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/5 "2015-02-10T10:25:58Z")

</div>

ah damn. Thanks for pointing that out !

---

<div class="post-metadata">

### Author: ![ArsArtificia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arsartificia/32/38747_2.png) [@ArsArtificia](https://meta.discourse.org/u/ArsArtificia)
#### Post date: [February 10, 2015, 10:30am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/6 "2015-02-10T10:30:42Z")

</div>

fixed it, but it’s still not working 😕

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [February 10, 2015, 12:47pm UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/7 "2015-02-10T12:47:42Z")

</div>

Are you seeing any errors in the discourse server log? I battled this for a while too.

---

<div class="post-metadata">

### Author: ![ArsArtificia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arsartificia/32/38747_2.png) [@ArsArtificia](https://meta.discourse.org/u/ArsArtificia)
#### Post date: [February 10, 2015, 12:55pm UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/8 "2015-02-10T12:55:39Z")

</div>

the log I can see on my discourse webui doesn’t show anything. is there a log on the filesystem I need to check as well ?

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [February 11, 2015, 8:33am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/9 "2015-02-11T08:33:52Z")

</div>

If you’re using a docker installation, I believe you should be able to find those in

```
/var/discourse/shared/standalone/log/var-log

```

---

<div class="post-metadata">

### Author: ![ArsArtificia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arsartificia/32/38747_2.png) [@ArsArtificia](https://meta.discourse.org/u/ArsArtificia)
#### Post date: [February 11, 2015, 9:15am UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/10 "2015-02-11T09:15:32Z")

</div>

The syslog states nothing unusual and there aren’t any error logs present =/  
I’m kinda out of ideas right now, so I’d gladly take any advice …  
**Edit:** Found the solution !!  
As my discourse instance isn’t ssl secured yet, I embedded non-secure content on a secure website. This was blocked in my browser (firefox) because of security issues ! In e.g. interntet explorer everything works fine 😄 thanks a lot for the help, @bartv and @Mittineague !  
ISSUE SOLVED

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [February 11, 2015, 7:13pm UTC](https://meta.discourse.org/t/cant-get-discourse-embedded-properly-into-ghost/25074/11 "2015-02-11T19:13:39Z")

</div>


