Gap Between Videos

This topic contains 19 replies, has 4 voices, and was last updated by  Jeff Adams 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #490009

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @jeff,

    Ohh, I am sorry 😐, I checked it with few other post url for sure.
    I think it may be cache issue on myside, I haven’t noticed it.
    but learned a lesson here.

    just to fix the above spacing issue.
    Please try this code in Js file of your custom plugin or child theme.

    
    
    
    jQuery(document).ready(function(){
    	if( jQuery('.geodir-post-meta-container .geodir-embed-container').length > 1 ){
    		jQuery('.geodir-post-meta-container .geodir-embed-container').css("padding-bottom", "0px");
    	}
    });
    
    

    If you are not sure where to add it.
    you can use https://wordpress.org/plugins/custom-css-js/ this plugin to add custom Js code.

    #490089

    Jeff Adams
    Free User
    Post count: 1780

    Thanks, I am not using a child theme yet. I was using Supreme theme but then the map stopped working for some reason so in an emergency rush effort I started using the starter theme. I started liking the starter theme but not sure I’ll stick with it just yet. If I do then I’ll create a child theme for that.

    In the meantime, is this something I can inject using “Snippets” plugin?

    #494058

    Jeff Adams
    Free User
    Post count: 1780

    I tried to add that to code snippet plugin and it returned a fatal error.

    This still have a large gap below the video using the only CSS that at least shows the video:
    https://veganlinked.com/services/united-states/north-carolina/charlotte/rent-a-renovator-llc/

    #494092

    Paolo
    Site Admin
    Post count: 31206

    that is javascript, not PHP so you can’t use the Snippets plugin.

    If you are not sure where to add it.
    you can use https://wordpress.org/plugins/custom-css-js/ this plugin to add custom Js code.

    Naveen told you what plugin to use, why don’t you just do what our team tells you to do?

    #494602

    Jeff Adams
    Free User
    Post count: 1780

    I must have overlooked the plugin solution, or maybe when I saw it didn’t understand that it would be different than the one I already have.

    I tried this and it didn’t really work. Sometimes users on facebook shoot video in portrait mode in which case the video is being chopped in half. I had to remove the CSS from other attempts at making this work and that caused the video to be chopped in half and then it shows all the videos instead of just one like the CSS forced.

    here’s the css I removed if that matters:

    .geodir-embed-container {
    display:none!important;
    }

    /*facebook video fill container*/
    .fb_iframe_widget_fluid_desktop, .fb_iframe_widget_fluid_desktop span, .fb_iframe_widget_fluid_desktop iframe {
    width: 100%!important;
    height: 700px!important;
    max-height: 700px!important;
    min-height: 700px!important;
    position: relative!important;
    }

Viewing 5 posts - 16 through 20 (of 20 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket