Embed wordpress blog into website hosting

A lot of conversation is shifting away from traditional websites and blog comments to social media. Often while writing an article, I like to refer to a discussion happening on Facebook, Twitter, or Google+. While you can of course, just link to the post in question, this has two problems:

Users have to navigate away from your site to participate;

No quick overview of the discussion then and there.

What we need is a way to take the discussions on these forums and bring them to us. Preferably we would like to augment the existing conversation on the social media site and bring our own website into the loop. If there is value in this, one of your readers may refer to your blog post within the social media discussion itself thereby generating even more readers for you.

hosting

You must have seen embedded tweets in articles around the Web. They contain not just the original message, but also any attached media as well as replies. In short, they are perfect replicas of actual tweets on the Twitter website itself. Here’s how you can implement this on your own WordPress blog. It requires a little tweak since you can’t insert asynchronous JavaScript from the post editor.

Embedding Tweets

The first step is to find a tweet you want to embed. In this example, I’m selecting one of webhostinghero’s messages. In the list of links at the bottom, you will see the “More” option. When you click it, you will get a menu giving you the option to embed the tweet as shown in the screenshot below.

This will bring up the HTML code you need to insert into your WordPress blog. It consists of two parts – the actual static HTML, as well as the asynchronous JavaScript.

If you are trying to put this on a regular website, there would be no problems – you simply have to cut-and-paste the code in the box. But because WordPress doesn’t allow you to just insert scripts into the editor, we need to use a workaround. If you try and paste the code as is, it won’t work and you get something like in the screenshot below.

Inserting the JavaScript Separately

What we need to do is to cut out the line of code starting with “

Related articles

Blog hosting script wordpress themesJavaScript will work within WordPress. If used within the template files. most JavaScript will work fine. Here are a few tips to make your JavaScript work in WordPress. JavaScript in Template...
Build website godaddy wordpress hostingThis is not your average “Building a WordPress Website” site. I am going to show you how you can create your own website based on WordPress, a static website which you can manage online and...
Blog hosting script wordpress widgetsJavaScript will work within WordPress. If used within the template files. most JavaScript will work fine. Here are a few tips to make your JavaScript work in WordPress. JavaScript in Template...
1 click wordpress install hosting websiteWith WordPress, you can create a personal website or blog. One.com's 1-click installer has made WordPress even easier to use. WordPress is an invaluable yet free-to-use tool for millions of...
Change blog page wordpress hostingBy default, WordPress shows your most recent posts in reverse chronological order on the front page of your site. Many WordPress users want a static front page or splash page as the front page...