wallpress 테마에서 목록에 동영상 플레이 넣기 How to show video on Wall? > wp테마

본문 바로가기


wallpress 테마에서 목록에 동영상 플레이 넣기 How to show video on Wall?

검색 다음 목록



How to show video on Wall?






How to show video on Wall?

Hello, I want to show a video on the mainpage of the Wall-theme (like in the demo). But when I insert the iframe-YT-code and choose format “video”, nothing happens.


2 Answers

 Take a look at the following solution:
1. Log in to Dashboard  > Appearance > Customize > Custom Code, add the following code to the “Header Code” section.

.masonry .format-video .item-content iframe, .masonry .format-video .item-content embed {
    display: block;

 – Add the following code to the “Footer code” section:

 function responsiveIframe() {
       if ( ! $(this).hasClass('twitter-tweet') ) {
           var iw = $(this).attr('width');
           var ih = $(this).attr('height');
           var ip = $(this).parent().width();
           var ipw = ip/iw;
           var ipwh = ih*ipw;
               'width': ip,
               'height' : ipwh,



2. Open the functions.php file. Find the line 660 & line 661. Replace the following code:

 add_filter('the_excerpt', 'wallpress_strip_tags');
add_filter('the_content', 'wallpress_strip_tags');

With new code:

 //add_filter('the_excerpt', 'wallpress_strip_tags');
//add_filter('the_content', 'wallpress_strip_tags');

Hope this helps !

Profile photo of Lukas Block Lukas Block commented 7 months ago

Hi Dominic, thanks! It worked! Will this be fixed in a new version (maybe for Wordpress 4)?

Profile photo of Dominic Dominic commented 7 months ago

We will fix this issue in the next version.

Greetings. When I noticed my iframe link video would not appear on the main page I made a post about the videos (clip syndicate news videos) and then set up a separate page where I put the iframe html. Within the commentary of the post I inserted a click here link to the page where the videos were. This worked i.e. clicked on post link and went to page in new window where you could click whatever item you wanted. I tried out the above and it worked for me too except that my post now also included 3 of the 6 videos that were on the separate video page. I’ve taken out the new coding. FYI the post categories Ive set are “main menu” and “news” while the page option “Get post from category” is set to featured.

Add Your Answer


등록된 댓글이 없습니다.



  • no image
  • logo 메뉴 분리

    themes/asteria-lite/style.css      /*Theme Name: Asteria LiteDescription: Asteria Lite is a clean responsive theme with …

  • no image
  • Asteria Lite 위젯수정하기

    1. 로고 를 수정하기위해  html 편집가능한 위젯을 추가하라   TinyMCE Advanced​   -> 편집기에 html  사용가능 추가   Black Studio TinyMCE Widget  -> …

  • 위젯
  • 위젯

    http://asterialite.towfiqi.com/   Asteria Lite by Towfiq I.PreviewDownloadLast updated: 2015년 3월 2일Theme HomepageAsteria…