Forum Replies Created
-
Author
-
danio987Participant
Hi Radu for some reason i cant see this option i kleo post carousel popup.
Can you tell me why?Attachments:
You must be logged in to view attached files.danio987ParticipantThanks,
I think that I found solution for this by setting this value to “auto”.COPY CODEportfolioVideo: function() { var elements = $(".porto-video .kleo-video-embed"); elements.height(function () { var image = $(this).closest(".portfolio-items").find('.portfolio-image img, .kleo-banner-slider img').eq(0); return image.length && image.height() > 0 ? image.height() : "160"; }); },
I saw that you hiring, and you look like cool outfit 😉
Probably I will drop line in your career tab.And still wait for your replay.
Thanks for guiding me.danio987ParticipantWell I probably found issue with the code.
Here is the thing
COPY CODEportfolioVideo: function() { var elements = $(".porto-video .kleo-video-embed"); elements.height(function () { var image = $(this).closest(".portfolio-items").find('.portfolio-image img, .kleo-banner-slider img').eq(0); return image.length && image.height() > 0 ? image.height() : "160"; }); },
When all portfolio items are set to video script probably doesn’t recognize its embeded img so its sets [switch] its height value to 160px. And this is actually happening on my site. 🙂
Do you have any clues how to resolve this?
I would be more than happy if you have some ideas.danio987ParticipantWhen I configure portfolio in such way that it displays all kinds of videos, pictures hosted on my server everything works like it is shown on site which you posted. But when I set up only external videos from youtube or vimeo they are trimmed a bit.
Wonder where values for width and height are calculated.
danio987ParticipantI think that it is because height is calculated dynamically based on two exceptions.
For images and embeded videos on server is calculated properly and for all videos that are somewhat divided by 2.
Thats why inline style is half of proper value.I think that change in some js file has to be done. Because your solution doesn’t seams work.
Attachments:
You must be logged in to view attached files. -
AuthorPosts