Video format article: custom thumb sizes

This topic has 22 replies, 3 voices, and was last updated 6 years, 1 months ago ago by Rose Tyler

  • Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    July 5, 2018 at 15:28

    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

    Please, contact administrator
    for this information.
    21 Answers
    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    July 9, 2018 at 09:08

    Can someone help me?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 9, 2018 at 10:58

    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

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    July 9, 2018 at 12:28

    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

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 9, 2018 at 12:33

    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

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    July 9, 2018 at 13:23

    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

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 9, 2018 at 13:34

    Could you, please, provide us with temporary wp-admin access?

    Regards

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    July 9, 2018 at 13:35

    In the private area there is a link

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 9, 2018 at 13:45

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 9, 2018 at 13:46

    Click on Share video > http://prntscr.com/k4aksk > http://prntscr.com/k4alj2 > add content in text block http://prntscr.com/k4alad

    Regards

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    July 9, 2018 at 15:29

    Resolved as recommended!

    Thanks so much

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 9, 2018 at 15:42

    You’re welcome!
    Would you mind to rate our product: https://themeforest.net/downloads
    That would be much appreciated 🙂

    Regards

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    October 9, 2018 at 14:45

    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?

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 9, 2018 at 15:10

    Hello,

    Please provide us with temporary wp-admin and FTP access.

    Regards

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    October 10, 2018 at 08:33

    Of course, copied the link in the private area.

    Greetings

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 10, 2018 at 09:11

    Thanks. Please provide FTP access (hostname, username, password, port) also, so we can take a closer look.

    Regards

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    October 10, 2018 at 11:19

    OK thanks,
    find the data in the private area.

    Greetings,
    Dario

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 10, 2018 at 12:19

    Please check now.
    etheme_the_post_field function has been changed via child theme.

    Regards

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    October 10, 2018 at 14:01

    OK thanks,
    I would like, however, that the recommended videos were not displayed at the end of the reproduction.

    Greetings,
    Dario

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 10, 2018 at 14:44

    Please check now.

    Regards

    Avatar: d4r1uzzo
    d4r1uzzo
    Participant
    October 10, 2018 at 15:27

    Perfect thanks.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 10, 2018 at 15:50

    You’re welcome!

    Regards

  • Viewing 22 results - 1 through 22 (of 22 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.