There may be times where you want to add supporting videos from YouTube or Vimeo into your site. Or maybe you want to add Tweets from Twitter, or content from other websites like Flickr and Instagram. You can embed these content easily in your WordPress site.
To do this, all you need to do is find the permalink for the content. In some sites like YouTube, the permalink is simply the current URL. For other sites like Reddit or Vimeo, you’ll have to find the “permalink”, “share” or “embed” button to get the URL. In some sites like Facebook, you’ll have to click the date of the status or post in order to get the permalink.
ਪਰਮਾਲਿੰਕ ਕਈ ਆਕਾਰਾਂ ਅਤੇ ਰੂਪਾਂ ਵਿੱਚ ਹੁੰਦੇ ਹਨ, ਪਰ ਆਮ ਤੌਰ ‘ਤੇ ਉਹ ਹੇਠਾਂ ਦਿੱਤੇ ਅਨੁਸਾਰ ਦਿਖਾਈ ਦਿੰਦੇ ਹਨ। ਇਹ ਯੂਟਿਊਬ ਤੋਂ ਹੈ:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
ਤੁਸੀਂ ਸਮੱਗਰੀ ਨੂੰ ਏਮਬੈਡ ਕਰਨ ਲਈ ਸਮੱਗਰੀ ਸੰਪਾਦਕ ਵਿੱਚ ਇਹ URL ਪੇਸਟ ਕਰ ਸਕਦੇ ਹੋ। ਜੇ ਇਹ ਏਮਬੈਡ ਕਰਨ ਯੋਗ ਹੈ, ਤਾਂ ਤੁਸੀਂ ਦੇਖੋਗੇ ਕਿ URL ਅਸਲ ਵੀਡੀਓ ਜਾਂ ਸਮੱਗਰੀ ਵਿੱਚ ਬਦਲ ਜਾਵੇਗਾ। ਜੇ ਅਜਿਹਾ ਨਹੀਂ ਹੁੰਦਾ, ਤਾਂ ਇਸਦਾ ਮਤਲਬ ਹੈ ਕਿ ਤੁਸੀਂ ਉਸ ਸਾਈਟ ਤੋਂ ਸਮੱਗਰੀ ਸ਼ਾਮਲ ਨਹੀਂ ਕਰ ਸਕਦੇ।
ਮੈਂ ਆਪਣੀ ਸਾਈਟ ਵਿੱਚ ਕਿਹੜੀਆਂ ਸਾਈਟਾਂ ਏਮਬੈਡ ਕਰ ਸਕਦਾ ਹਾਂ?
Not all sites can be embedded into your WordPress site. The WordPress Codex has a list of sites which you can embed: https://codex.wordpress.org/Embeds
ਪਲੱਗਇਨ ਇੰਸਟਾਲ ਕਰਨ ਨਾਲ ਹੋਰ ਏਮਬੈਡ ਕਰਨ ਯੋਗ ਸਾਈਟਾਂ ਸ਼ਾਮਲ ਹੋ ਸਕਦੀਆਂ ਹਨ
If the content you want to embed isn’t in the list in the WordPress Codex, there is another way. Installing plugins can add more embeddable sites. For example, installing Jetpack allows you to embed wall posts from Facebook.
There are plenty more out there that add more sites, do a search for “oEmbed provider” in the WordPress.org plugin repository to find more. Here’s a link to the plugin repo for your convenience: https://wordpress.org/plugins/search.php?type=term&q=oembed+provider
ਸਮੱਗਰੀ ਸ਼ਾਮਲ ਕਰਨ ਦਾ ਇੱਕ ਹੋਰ ਤਰੀਕਾ – Iframe ਏਮਬੈਡ ਕੋਡ
ਜੇਕਰ ਸਿਰਫ਼ URL ਪੇਸਟ ਕਰਨ ਨਾਲ ਕੰਮ ਨਹੀਂ ਬਣਦਾ, ਤਾਂ ਸਮੱਗਰੀ ਨੂੰ ਏਮਬੈਡ ਕਰਨ ਦਾ ਇੱਕ ਹੋਰ ਤਰੀਕਾ ਵੀ ਹੈ। ਜਿਸ ਸਾਈਟ ਨੂੰ ਤੁਸੀਂ ਸ਼ਾਮਲ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ ਉਸ ਦੇ ਸਾਂਝਾਕਰਨ ਵਿਕਲਪਾਂ ਦੀ ਜਾਂਚ ਕਰੋ, ਪਰਮਾਲਿੰਕ ਤੋਂ ਇਲਾਵਾ, ਤੁਹਾਨੂੰ ਇੱਕ ਛੋਟਾ ਜਿਹਾ “ਏਮਬੈਡ ਕੋਡ” ਵੀ ਦਿੱਤਾ ਜਾ ਸਕਦਾ ਹੈ। ਏਮਬੈਡ ਕੋਡ ਇਸ ਤਰ੍ਹਾਂ ਦੇ ਦਿਖਾਈ ਦਿੰਦੇ ਹਨ:
<iframe width="420" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
Copy that then in your WordPress content editor, click on the text tab on the top of the editor and paste that in. After you’ve pasted that in, head back to the visual tab, you’ll see if it works when the embed code now looks like the actual content that will get embedded. You can’t do this in the visual tab, pasting it from there would just show the pasted code in your site, it won’t get converted into the content.
ਫਰੰਟਐਂਡ ਤੋਂ ਦੂਜੀਆਂ ਸਾਈਟਾਂ ਤੋਂ ਸਮੱਗਰੀ ਸ਼ਾਮਲ ਕਰਨ ਲਈ Page Builder Sandwich ਦੀ ਵਰਤੋਂ ਕਰੋ
While adding content from other sites seem easy, doing things in the administration side of WordPress is a bit of a hassle. You have to know whether to add it in the visual tab or text tab, and you’ll have to preview your page or post in order to see how it would look like when viewed by your site’s visitors.
Page Builder Sandwich ਤੁਹਾਨੂੰ ਫਰੰਟਐਂਡ ਤੋਂ ਹੀ ਆਪਣੀ ਅਸਲ ਸਾਈਟ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰਨ ਦੀ ਇਜਾਜ਼ਤ ਦੇ ਕੇ ਚੀਜ਼ਾਂ ਨੂੰ ਆਸਾਨ ਬਣਾਉਂਦਾ ਹੈ। ਜਦੋਂ ਤੁਸੀਂ Page Builder Sandwich ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹੋ, ਤਾਂ ਤੁਸੀਂ ਆਪਣੀ ਸਾਈਟ ਦੀ ਸਮੱਗਰੀ ਨੂੰ ਆਸਾਨੀ ਨਾਲ ਲਿਖ ਅਤੇ ਸੰਪਾਦਿਤ ਕਰ ਸਕਦੇ ਹੋ। ਹੋਰ ਸਾਈਟਾਂ ਤੋਂ ਸਮੱਗਰੀ ਨੂੰ ਏਮਬੈਡ ਕਰਨਾ ਵੀ ਬਹੁਤ ਸੌਖਾ ਹੋ ਜਾਂਦਾ ਹੈ।
Page Builder Sandwich ਨਾਲ, ਆਪਣੀ ਸਾਈਟ ਦੇ ਸਾਹਮਣੇ ਵਾਲੇ ਹਿੱਸੇ ਵਿੱਚ ਕਿਤੇ ਵੀ ਪਰਮਾਲਿੰਕ ਜਾਂ iframe ਏਮਬੈਡ ਕੋਡ ਪੇਸਟ ਕਰੋ ਅਤੇ ਇਹ ਤੁਰੰਤ ਏਮਬੈਡ ਕੀਤੀ ਸਮੱਗਰੀ ਵਿੱਚ ਬਦਲ ਜਾਵੇਗਾ, ਇਹ ਜਾਣਨ ਦੀ ਕੋਈ ਲੋੜ ਨਹੀਂ ਰਹੇਗੀ ਕਿ ਤੁਹਾਨੂੰ ਕਿਸ ਟੈਬ ਵਿੱਚ ਸਮੱਗਰੀ ਪੇਸਟ ਕਰਨ ਦੀ ਲੋੜ ਹੈ।