One Image or Video instead of Slider

This topic contains 3 replies, has 2 voices, and was last updated by  Paolo 8 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #66616

    byalik
    Lifetime Member
    Post count: 78

    Hi,

    1. Is it possible to insert/use a video instead of the featured image sliders? If so, how?

    2. Is it possible that if you’re only using 1 image, it doesn’t show the arrows for the slider?

    #66709

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    1 yes, you can remove the slider and replace it with the featured image:

    add this in your theme functions.php file :

    
    
    remove_action( 'geodir_details_main_content','geodir_action_details_slider',30);
    
    add_action( 'geodir_details_main_content','my_geodir_action_details_slider',30);
    
    function my_geodir_action_details_slider() {
    
    if ( has_post_thumbnail() ) { the_post_thumbnail('full');
    } 
    }

    If you want to echo the video instead of the featured image, replace

    if ( has_post_thumbnail() ) { the_post_thumbnail('full');

    with

    global $post; echo $post->geodir_video;

    .

    Haven’t tested the second part, let me know if it works. (it should)

    Thanks

    #66788

    byalik
    Lifetime Member
    Post count: 78

    How/Where would you add the video to be displayed?

    #67155

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    in the video field of the add listing form.

    Thanks

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

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

Open Support Ticket