replace slider with feature image

This topic contains 3 replies, has 3 voices, and was last updated by  Kiran 6 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #399296

    Lydia Williams
    Expired Member
    Post count: 42

    Hi there,

    I tried to follow these instructions but it didn’t work:
    https://wpgeodirectory.com/support/topic/one-image-or-video-instead-of-slider/
    Any clue?
    Thanks!

    #399307

    Kor
    Moderator
    Post count: 16516

    Hi Lydia,

    Please share the URL of the site in question so we can take a better look at it and also WP temp admin access to your site. You can post the details here using the private reply option below.

    Thanks!

    #399311

    Lydia Williams
    Expired Member
    Post count: 42
    This reply has been marked as private.
    #399378

    Kiran
    Moderator
    Post count: 7069

    Hi Lydia,

    Check now, i have added following snippet to your site in Snippets.

    
    
    // replace slider with feature image
    function _gd_custom_setup_featured_image() {
        remove_action( 'geodir_details_main_content', 'geodir_action_details_slider', 30 );
        add_action( 'geodir_details_main_content', '_gd_custom_single_featured_image', 30 );
    }
    add_action( 'init', '_gd_custom_setup_featured_image', 10 );
    
    function _gd_custom_single_featured_image() {
        if ( is_single() && '' !== get_the_post_thumbnail() ) { ?>
            <div class="big-preview single-big post-thumbnail gd-post-thumbnail clearfix" style="text-align:center">
                <?php the_post_thumbnail( 'full' ); ?>
             </div>
        <?php }
    }

    Kiran

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