Video tab content height

This topic contains 8 replies, has 2 voices, and was last updated by  swingmakers 10 years, 5 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #19371

    swingmakers
    Free User
    Post count: 23

    I’m trying to change the height of the content area of the Video tab to be 100% so more than one video can be shown. Please see this link:

    http://www.swingmakers.com/instructor/john-smith/#post_video

    #19388

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Some special CSS is used to make the video’s responsive because of this it’s hard to set a auto height, you should set a minimum height via CSS.

    Stiofan

    #19434

    swingmakers
    Free User
    Post count: 23

    Disappointing. Any plans to make videos a gallery similar to photos tab?

    #19437

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    No Plans at the moment, i don’t think it has been requested.

    Stiofan

    #19498

    swingmakers
    Free User
    Post count: 23

    Stiofan,

    I need a little help. Is there a way I can somehow use

    <?php echo do_shortcode('[shortcode]'); ?>

    to automatically add shortcode around the video entry on an add listing page? Screen shot is attached.Stiofan,

    #19562

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    hmm, i don’t think there is an easy way, why?

    #19564

    swingmakers
    Free User
    Post count: 23

    I really need my videos to be in a gallery similar to the photos tab. I found a plugin that will do it but whatever the customer enters on the add listing form in the “video” section needs to be surrounded by shortcode [].

    #19573

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    i’m not sure it would work because the content filter is applied and that is applying it’s own filters but try this

    
    
    add_action('geodir_before_tab_content', 'geodir_before_tab_content_post_video',15,1);
    function geodir_before_tab_content_post_video($tab){
    if($tab=='post_video'){
    // ADD YOUR SHORTCODE BEFORE CODE HERE
    }
    }
    
    add_action('geodir_after_tab_content', 'geodir_after_tab_content_post_video',15,1);
    function geodir_after_tab_content_post_video($tab){
    if($tab=='post_video'){
    // ADD YOUR SHORTCODE AFTER CODE HERE
    }
    }

    As i said, i doubt it will work but worth a shot.

    Stiofan

    #19733

    swingmakers
    Free User
    Post count: 23

    Thanks but it didn’t work. It actually broke my site.

Viewing 9 posts - 1 through 9 (of 9 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount