Hi, when I put a picture on a post and set the type as "image" then I can see the picture from category view too. However, if I embed a YouTube video and set the type as "video," I cannot see the video from category view. Is there any way that I can make embedded videos visible from category views? thanks.
To show the Video on the Homepage/categories page in the DW WAll theme, You can do as the following.
-
Log in to Dashboard > Appearance > Customize > Custom Code, add the following code to the
Header Code
section.<style> .masonry .format-video .item-content iframe, .masonry .format-video .item-content embed { display: block; } </style>
– Add the following code to the
Footer code
section:<script> jQuery(function($){ function responsiveIframe() { $('iframe').each(function(){ 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; $(this).css({ 'width': ip, 'height' : ipwh, }); } }); } $(document).ready(function(){ responsiveIframe(); }); $(window).resize(function(){ setTimeout(function(){ responsiveIframe(); },500); }); $('.masonry').masonry('reload',function(){ setTimeout(function(){ responsiveIframe(); },500); }); }); </script>
-
Open the functions.php file. Find the line 660 & line 661. Change the code line as the following code:
//add_filter(‘the_excerpt’, ‘wallpress_strip_tags’);
//add_filter(‘the_content’, ‘wallpress_strip_tags’);
Note: Please send em username & password of your site (via private answer) if you still face there issue.
Hope this helps !
Please login or Register to submit your answer