Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #128654
    VoceDeveriaSaber
    Participant

    Hello.

    I was trying to insert custom size of embed videos on my website and everything was good in the text editor, but when I updated my Post, the video didn’t stay custom size (it remained in the original size) and I think that is probably a theme problem. I wouldn’t like to use an plugin to do this so I came to this forum to look for a help.

    Someone already passed trough this and solve this problem or could help me to find the problem?

    Best reguards,
    Você Deveria Saber (my website).

    #128671
    tikaram
    Keymaster

    @vocedeveriasaber : The theme uses a script to resize videos. If you would like to remove the script it can be done by adding a child theme and removing the script through child theme. If you can customize your site using a child theme please let me know.

    Regards,
    Tikaram

    #128785
    VoceDeveriaSaber
    Participant

    @tikaram I don’t know much about child theme, but I know what is it and I can customize using it.

    Where can I found the resize videos script? (Folder)

    Regards,
    Você Deveria Saber

    #128808
    tikaram
    Keymaster

    @vocedeveriasaber : Follow this link to know more about Creating child themes in WordPress. After you create a child theme add the following code in your functions.php file of child theme.

    add_action( 'wp_print_scripts', 'parallax_frame_child_deque_fitvid' );
    function parallax_frame_child_deque_fitvid(){
    	wp_dequeue_script( 'jquery-fitvids', get_template_directory_uri() . '/js/fitvids.min.js', array( 'jquery' ), '1.1', true );
    }

    After adding the above code the video will not resize. Let me know if this resolves your issue.

    Regards,
    Tikaram

    #128821
    VoceDeveriaSaber
    Participant

    @tikaram

    Ok! Thank you, I’ll do it soon and then I come back to tell you if it worked. Just one more question: can I put this code in the original theme?

    Regards,
    Você Deveria Saber

    #128995
    tikaram
    Keymaster

    @vocedeveriasaber : Please do not add this code in the original theme. If you add this code in the original theme, the changes will be lost after theme update. Its recommended to create a child theme and add the code.

    Regards,
    Tikaram

    #129010
    VoceDeveriaSaber
    Participant

    I couldn’t make the child theme work, so I puted this code in the parent theme.

    Everything worked fine, thank you @tikaram!

    Regards,
    Você Deveria Saber

    #129051
    tikaram
    Keymaster

    @vocedeveriasaber : When you update your theme make sure you add the required code again because the changes will be lost after theme update.

    Regards,
    Tikaram

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Custom size of embed Videos’ is closed to new replies.