To display custom feed on your your website, you have to use the “embed code” generated by DSM. This embed code is a small JavaScript code that you have to put on your website. Today I am going to teach you how to embed JavaScript in WordPress page or post.
On WordPress, you can put this embed code by simply:
- Creating or editing a page or post.
- Select “Text” tab on the editor
- Paste the embed code from DSM
- Click “Publish” or “Save Changes” button.
But for some cases, WordPress users don’t want to select the “Text” tab every time because the page has other contents that they want to edit in “Visual” tab mode.
If you have the same situation, you can use the DSM embed code this way:
- Install & Activate the Shortcoder WordPress Plugin.
- Go to Settings > Shortcoder
- Click “Create a new shortcode” button.
- Enter shortcode name, for example: Facebook Page Events On Website
- On the upper right corner of the editor, make sure you click the “Text” tab.
- Paste the embed code from DSM
- Click “Create Shortcode” button.
- Go to Settings > Shortcoder again.
- Find the Shortcode you created and click the “<>” button to copy your shortcode.
- Paste the shortcode on your page or post. Click “Publish” or “Save Changes” button.
This way, you don’t have to select the “Text” tab every time you edit your page or post. Let the Shortcoder plugin deal with that.
Need SociableKIT support?
Do you have any related questions or suggestions? We are here to listen and act for you! There are three ways to contact us.
- Send an email to [email protected]
- Send a message on our official Facebook page
- Use our live-chat box located on the lower right corner of this page.
Related SociableKIT solutions
Using SociableKIT, you can customize and embed Facebook, Instagram, YouTube, Twitter feed and more on your website. Learn how to do it by choosing any tutorial here: Website Tutorials
Thank you for following our tutorial about how to embed JavaScript in WordPress page or post!