This topic has 22 replies, 3 voices, and was last updated 6 years, 2 months ago ago by Rose Tyler
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
Can someone help me?
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
Perfect, solved!
The same code also corrects the connection via the video player of the visual composer (see link in the private area)?
thank you so much
Could you, please, provide us with temporary wp-admin access?
Regards
In the private area there is a link
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
Resolved as recommended!
Thanks so much
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
Of course, copied the link in the private area.
Greetings
Thanks. Please provide FTP access (hostname, username, password, port) also, so we can take a closer look.
Regards
OK thanks,
find the data in the private area.
Greetings,
Dario
Please check now.
etheme_the_post_field
function has been changed via child theme.
Regards
OK thanks,
I would like, however, that the recommended videos were not displayed at the end of the reproduction.
Greetings,
Dario
Please check now.
Regards
Perfect thanks.
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up