Can’t embed video on post using publisher theme wordpress
-
Hi,
I’m trying to embed a YouTube video on a post using publisher theme options, but it’s not working. Only the video link displayed on post.
PS: I noticed that this problem occurred after changing hosting server. Is that a server side issue or theme?
Thank you in advance
-
Do youtube videos work if you change the theme to twentytwenty?
If so, then it’s your theme. Because you’re using a commercial theme, please use their official support channel. We feel they are best equipped to support their products.
https://community.mythemeshop.com/
Commercial products are not supported in these forums.
If it’s not the theme, then we’ve got some troubleshooting to do.
Thank you for your reply @steven.
Hi,
Can’t podt issue on publisher community.
Do you have any idea how to resolve this problem without posting on publisher support?Thank you
So it’s the theme? Try contacting the devs. https://mythemeshop.com/contact-us/
Hi,
After manu research, I recognized that embeding is not enable in my wordpress site.
I tried to copy paste the video link on text editor but it was not auto embeded. So, do you know how to allow embed videos in wordpress?
Thank you
- This reply was modified 3 years, 4 months ago by ema15.
The should just embed. It might help if you use the various, source-specfic blocks.
Hi,
What did you mean by “various, source-specfic blocks”?.
I do research and I find this code snippet to add in functions.php:
/**
* Add iFrame to allowed wp_kses_post tags
*
* @param array $tags Allowed tags, attributes, and/or entities.
* @param string $context Context to judge allowed tags by. Allowed values are ‘post’.
*
* @return array
*/
function custom_wpkses_post_tags( $tags, $context ) {if ( ‘post’ === $context ) {
$tags[‘iframe’] = array(
‘src’ => true,
‘height’ => true,
‘width’ => true,
‘frameborder’ => true,
‘allowfullscreen’ => true,
);
}return $tags;
}add_filter( ‘wp_kses_allowed_html’, ‘custom_wpkses_post_tags’, 10, 2 );
This well help to resolve the problem?
- This reply was modified 3 years, 4 months ago by ema15.
I meant what happens if you use a YouTube block? And, again, what happens if you switch the theme to twentytwenty?
I can’t switch to another theme because I don’t have a staging website. I modify directly on the live website.
You need to test this. Use the health-check plugin.
See https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/ for more information.
And did you test a youtube block?
I did integrate succefully the youtube video iframe but I want to auto embed video by copy paste the link.
That (copy/paste) should work, unless there’s a conflict with your theme or a plugin.
See https://www.loom.com/share/a8ed9cb46cda4d82a8b1b66ab321fb5e
Hi,
Finaly problem fixed, it’s due to new host, youtube urls coudln’t be well formated while I m connected to vpn.
Thank you for help.
- The topic ‘Can’t embed video on post using publisher theme wordpress’ is closed to new replies.