All I want to do is grab the whole Discourse forum and embed it on a page under my normal Wordpress site header. I have the ability to embed whatever HTML, script etc I want under this on a dedicated page â I just need the code.
Is there a way to do this? This would go a long way towards making Discourse feel part of the rest of my site.
Personally I think youâll find this more trouble than itâs worth. IMHO it would be far better to put that effort into HTML & CSS-based styling & customizations to match fonts, layouts, colors, etc., as well as header & footer HTML that can really make the Discourse site a matched complement to your main site.
We have a fairly heavily integrated WordPress/Discourse instance here which might give you some inspiration. Happy to talk through the details if you like.
Commenting is using the wp-discourse plugin, and we have SSO through WP, so when new members sign up, they are pushed into the right priv groups on Discourse to match their membership level.
The Add Discussion button on the homepage pre-loads a new Discourse topic, and several functions pull new topics from certain categories and display them on the second row of the homepage.
We use CORS to display avatars and notifications on the home page, along with likes, views and comment counts.
Lastly, clicks across the homepage (WP articles or Discourse posts) and captured and logged in localStorage, so that we can utilise a click-count pop-up prompting people to join after reading x posts and I tweaked the CSS so that the base font and headers match, and thatâs about it!
Iâm quite interested in making this work. We have a wordpress site that has specific functionality that we need above and beyond what discourse has.
Itâd be nice if we could embed our discourse site on a âcommunityâ page of our wordpress site.
What steps would I take?
Hello @HAWK do you know if there is there a Squarespace integration? - I am not looking for the full forum to be embededâŚbut would like some sort of âfeedâ or âteaserâ or âtickerâ of the newest post to appear on the Squarespace site.
Devo anche incorporare il forum: voglio usare il mio nuovo forum Discourse per sostituire il vecchio forum nella mia applicazione. Ă incorporato in un overlay dellâinterfaccia utente nella mia web UI e devo incorporare lâintera cosa.
La mia comprensione è che non è possibile incorporare completamente Discourse in un iframe. Questa domanda è stata posta e risposta piÚ volte su questo forum.
Puoi incorporare i commenti di Discourse sul tuo sito. Questo può essere fatto seguendo questa guida: Incorporare i commenti di Discourse tramite Javascript. Quando i commenti sono incorporati, gli utenti dovranno comunque visitare il sito di Discourse per creare un nuovo commento.
Lâaltra opzione per ottenere contenuti di Discourse su un sito esterno è utilizzare lâAPI di Discourse per recuperare i dati da Discourse. Questo è lâapproccio utilizzato dal nostro plugin per WordPress.