Support for Envato Buyers › Forums › OldCar › Video height on blog page
- This topic has 27 replies, 2 voices, and was last updated 8 years, 4 months ago by FocuxTheme Support.
-
AuthorPosts
-
-
July 31, 2016 at 10:39 pm #10445DavidCollierMember
I’m using the fluid grid setting on the blog/home page. I’ve put up several videos with the different width settings on the backend but all the videos end up the same height. The video width is fine but I’m ending up with small videos which have lots of black space above and below the video and large videos that only show part of the video.
Stuff like this http://yourejustzealous.com/wp-content/uploads/2016/07/Screen-Shot-2016-08-01-at-00.38.37.png
-
August 1, 2016 at 5:13 pm #10448FocuxTheme SupportKeymaster
Hi
Could I check your website that will make me clear? I need to check the layout by Chrome developer tool and see what’s wrong with it.
Thanks
-
August 1, 2016 at 8:58 pm #10449DavidCollierMemberThis reply has been marked as private.
-
August 2, 2016 at 9:03 am #10455FocuxTheme SupportKeymaster
Hi
I improved oldcar.setup.js file, so you can download this changed file via https://www.dropbox.com/s/0e9t44qy3dwsip2/oldcar.setup.js.zip?dl=0 unzip it, and upload the js file to oldcar/js folder via FTP client, overwrite the old version.
Thanks
-
August 2, 2016 at 11:18 am #10458DavidCollierMember
Thanks that work great. I’ve another question about the blocks as well. If you check out the site again there’s a block less than half way down called ‘Smacht Trailers’ which is being covered by another block.
-
August 2, 2016 at 11:53 am #10459DavidCollierMember
Actually there are several of these problems with the blocks overlapping each other on the blog page.
Another question about the sing post pages. If I upload a video to the site with a dimension of greater than the width of the page it spills out over the size of the page. Is there a way to constrain the videos to the width of the page? I’m worried that less code familiar employees will use add posts with videos to the site which will only be partially viewable due to the width of the video. Here’s an example: http://yourejustzealous.com/st-patricks-amsterdam/
-
August 3, 2016 at 3:13 pm #10463FocuxTheme SupportKeymaster
Hi
Could you post a screenshot to show the overlap issue? Because I checked it on Mac+Chrome/Firefox, it’s display as normal. Also, what’s browser you used? Or any steps I missed to reproduce the issue?
For the video size issue, please try to add the following custom CSS into OldCar options > Custom Code > Custom CSS
.blog-article-content iframe{ max-width:100%; min-height:500px; height:auto; }
Thanks
-
August 3, 2016 at 3:32 pm #10466DavidCollierMember
That code worked great thanks.
The overlap I’m referring to is this: http://yourejustzealous.com/wp-content/uploads/2016/08/Screen-Shot-2016-08-03-at-17.27.23.png
In this screenshot the text underneath two of the videos is being hidden by the video below it.I’m also experiencing some large empty spaces between the blocks: http://yourejustzealous.com/wp-content/uploads/2016/08/Screen-Shot-2016-08-03-at-17.30.01.png
I’m using Chrome ver. 51.0.2704.103
-
August 4, 2016 at 7:23 am #10467FocuxTheme SupportKeymaster
Well, I see. It seems when the page or images was loaded slowly, the issue was produced. Now, I’m rewriting the masonry layout and I will let you know the solution later.
Thanks
-
August 4, 2016 at 5:13 pm #10468FocuxTheme SupportKeymaster
Hi
Please download this changed files, upload those files to your theme folder, overwrite the old files.
https://www.dropbox.com/s/b39sp51lxh2tc8g/update20160804.zip?dl=0
Thanks
-
August 4, 2016 at 5:34 pm #10469DavidCollierMember
Hi John,
I’m not sure if it’s worked as it doesn’t include all the posts that were on the homepage. The ones which are there are not overlapping but several of the ones which were there are now missing…
-
-
August 5, 2016 at 1:47 pm #10470FocuxTheme SupportKeymaster
Hi
I want to check your settings in WP admin, but the account which you created for me is not admin role, it’s only a subscriber, so I can’t see those options in WP admin, could you change my account as administrator?
Thanks
-
August 5, 2016 at 1:49 pm #10471DavidCollierMember
I’ve updated it now.
-
August 5, 2016 at 1:57 pm #10472DavidCollierMember
I’ve just changed the number of blog posts to show at any one time to 20 and all the posts are being displayed on the homepage again. Is it possible to make the posts displayed unlimited? Or some kind of page option so you can access older posts?
-
August 6, 2016 at 8:04 pm #10475FocuxTheme SupportKeymaster
Hi
I found the reason. Because you have set the height of youtube iframe to ‘auto’, so when the new post loaded, the page can’t get the initial height of iframe, so please set the height of those iframe to 320 for wide box or 150 for narrow box in the future as below
<iframe width="100%" height="320"...></iframe>
I’ve already changed the height value of iframe for those published post and changed the number of posts to 9, now it seems working fine.
Also, please upload this changed file to js folder once more, because I’ve improved the page loading speed. https://www.dropbox.com/s/0e9t44qy3dwsip2/oldcar.setup.js.zip?dl=0
Thanks
-
August 12, 2016 at 7:26 pm #10492DavidCollierMember
Hi, that seems to have solved the problem of the video on the homepage, but it’s causing the night of the videos to be extremely long on the individual posts, see: http://yourejustzealous.com/smacht-trailers/
It’s not happening on all the posts but on the other posts the height of the clips is not in the correct ratio to the width of the video.
-
August 13, 2016 at 3:51 pm #10497FocuxTheme SupportKeymaster
Hi
You can try to control the video width and height via your embed code
<iframe height="400" width="720" src="https://www.youtube.com/embed/videoseries?list=PLwBzik7-yITbH5_dba2I1YhThErpAXSAQ&showinfo=0" frameborder="0" allowfullscreen></iframe>
If you don’t want to the video width looks so long, you can just change width=”100%” to 720 or any other value you want.
Check this again. http://yourejustzealous.com/smacht-trailers/
Thanks
-
August 13, 2016 at 3:53 pm #10498DavidCollierMember
Yes that’s true, but now the video thumbnail on the homepage is the wrong size. Is there anyway that both videos can be the right size in their respective containers?
-
August 13, 2016 at 4:22 pm #10499FocuxTheme SupportKeymaster
Strange, I checked the source code through chrome developer tool, I found your theme is different from the latest version of OldCar, the video wasn’t resized by javascript.
Could I reinstall the theme after you backup the old theme?
-
August 13, 2016 at 4:56 pm #10506DavidCollierMember
Sure!
I’ve made a few changes to the code so maybe that’s causing it…
-
August 13, 2016 at 4:57 pm #10507DavidCollierMember
The difference between the latest theme and the theme I have I mean. I was trying to solve the video height problem in the code
-
August 13, 2016 at 5:07 pm #10508FocuxTheme SupportKeymaster
Oh, if I reinstall the theme, all your changes will lost. So, could I continue to do that?
-
August 13, 2016 at 5:09 pm #10509DavidCollierMember
Yes that’s ok.
-
August 13, 2016 at 6:40 pm #10512FocuxTheme SupportKeymaster
Hi
I reinstalled my modified version of this theme, please check again.
Thanks
-
August 13, 2016 at 6:50 pm #10514DavidCollierMember
None of the videos are the right size now… Or is there something I’m missing?
-
August 14, 2016 at 4:26 pm #10519FocuxTheme SupportKeymaster
These are my screenshots, I’m not sure there’s anything I missed. Please check.
-
August 14, 2016 at 4:58 pm #10521DavidCollierMember
I’m seeing this:
http://yourejustzealous.com/wp-content/uploads/2016/08/Screen-Shot-2016-08-14-at-18.52.23.png
http://yourejustzealous.com/wp-content/uploads/2016/08/Screen-Shot-2016-08-14-at-18.52.12.png
With the black boxes around the videos so the height isn’t adjusting properly.
-
August 14, 2016 at 5:18 pm #10522FocuxTheme SupportKeymaster
Different videos has different height, so in this theme, I only forced the width of video but the height is not fixed, you can define the height of video through change height=”…” param in iframe tag for each video just as my previous reply. Do I make sense?
This is your embed code
<iframe src="https://player.vimeo.com/video/178080870?title=0&byline=0&portrait=0" width="720" height="402" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
You can control the video height through changing height value. I changed 402 to 300, please check, you will see the result after I redefine the height.
Thanks
-
-
AuthorPosts
- You must be logged in to reply to this topic.