Hello,
it is possible to change the size of the thumb when the article is a video format and as a preview has the link of a video.
For example having the same size of the images in evidence of the standard format articles (see link in the private area)
it is also possible to exclude suggested videos and information from the preview video (eg title, etc …)
Thanks so much
Hello,
1) Video post does not have any special settings for the image size but script calculates the height of the video according to the height of simple post image http://prntscr.com/k480qe during page loading. So, I’m not sure if understand your problem. Can you provide me with screenshots of the issue for better understanding?
2) There is no such option in theme but we’ll add it one of the next updates. Meanwhile, you can improve it by yourself in the child theme. Add the following code in child theme functions.php
function etheme_the_post_video() {
$url = etheme_get_custom_field('post_video');
$embed = VideoUrlParser::get_url_embed($url);
echo '<pre>';
var_dump($embed);
echo '</pre>';
if(!empty($embed)) {
?>
<iframe width="100%" height="560" src="<?php echo $embed . '&rel=0'; ?>" frameborder="0" allowfullscreen></iframe>
<?php
}
}
Regards
1) I solved by resizing the preview images from the settings of the theme to the dimensions of the video preview and correcting from the css some margins to also align title and description
2)I added the code in the function.php file of the child theme, but I find an error (see link in the private area). I also need to hide the video information.
Thanks so much
Hello,
1. We are glad that you sorted out.
2. Please change the code to:
function etheme_the_post_video() {
$url = etheme_get_custom_field('post_video');
$embed = VideoUrlParser::get_url_embed($url);
if(!empty($embed)) {
?>
<iframe width="100%" height="560" src="<?php echo $embed . '&rel=0' . '&showinfo=0'; ?>" frameborder="0" allowfullscreen></iframe>
<?php
}
}
Regards
Could you, please, provide us with temporary wp-admin access?
Regards
Hello,
Nope, this code is not suitable for the WPBakery default Video element. WPBakery Video element code you can find in js_composer/include/templates/shortcodes/vc_video.php Follow the WPBakery documentation if you want to change their default elements, we are able to help you only with our theme settings and elements.
Regards
Click on Share video > http://prntscr.com/k4aksk > http://prntscr.com/k4alj2 > add content in text block http://prntscr.com/k4alad
Regards
You’re welcome!
Would you mind to rate our product: https://themeforest.net/downloads
That would be much appreciated 🙂
Regards
Hello,
this code with the new version of the template 5.0.3 no longer hides the video information and suggested videos at the end of the reproduction.
function etheme_the_post_video() {
$url = etheme_get_custom_field('post_video');
$embed = VideoUrlParser::get_url_embed($url);
if(!empty($embed)) {
?>
<iframe width="100%" height="560" src="<?php echo $embed . '&rel=0' . '&showinfo=0'; ?>" frameborder="0" allowfullscreen></iframe>
<?php
}
}
How should it be changed?
Hello,
Please provide us with temporary wp-admin and FTP access.
Regards
Thanks. Please provide FTP access (hostname, username, password, port) also, so we can take a closer look.
Regards
Please check now.
etheme_the_post_field
function has been changed via child theme.
Regards
Please check now.
Regards
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty
You may extend support period on ThemeForest and then update its status by clicking "Update" button in your Account area.
Purchase code | Expiration date |
---|---|
adb2cf8c-15ed-4d7a-a406-790658a81a6c | 03 Dec 2019 |