Tagged: post
- This topic has 7 replies, 2 voices, and was last updated 5 years, 11 months ago by
tikaram.
-
AuthorPosts
-
December 26, 2017 at 11:13 am #128654
VoceDeveriaSaber
ParticipantHello.
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).December 26, 2017 at 10:44 pm #128671tikaram
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,
TikaramDecember 28, 2017 at 3:17 pm #128785VoceDeveriaSaber
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 SaberDecember 29, 2017 at 2:30 am #128808tikaram
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,
TikaramDecember 29, 2017 at 8:30 am #128821VoceDeveriaSaber
ParticipantOk! 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 SaberJanuary 2, 2018 at 5:56 am #128995tikaram
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,
TikaramJanuary 2, 2018 at 9:54 am #129010VoceDeveriaSaber
ParticipantI 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 SaberJanuary 3, 2018 at 5:44 am #129051tikaram
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 -
AuthorPosts
- The topic ‘Custom size of embed Videos’ is closed to new replies.