Notifications
Clear all

[Solved] Original WP embed function for YouTube?

38 Posts
18 Users
8 Reactions
23.6 K Views
Griffsy
Posts: 13
(@griffsy)
Eminent Member
Joined: 9 years ago

Same issue here @ redmars

Robert
Posts: 10605
Admin
(@robert)
Support Team
Joined: 9 years ago

I just updated the Step 1 code, please update it in your theme's functions.php file.

Griffsy
Posts: 13
(@griffsy)
Eminent Member
Joined: 9 years ago

ThanksĀ  Robert all sorted šŸ™‚

Posts: 6
(@ifail93)
Active Member
Joined: 9 years ago

Ā i cant get it to work šŸ™

<?php echo wpforo_kses($post['body'], 'post') ?>

is not existing in my post.phpĀ 

Posts: 35
 N3k0
(@n3k0)
Trusted Member
Joined: 9 years ago

You can make the iframe responsive... something like that, with css šŸ˜›

.wpforo-post-content iframe,
.wpforo-post-content object,
.wpforo-post-content embed {
position: relative;
top: 0;
left: 0;
width: 100%;
max-width: 600px;
height: 320px;
}

Cheers!

Page 2 / 5