Remove Slideshow From Listings Page for a Certain Type of Image

This topic contains 22 replies, has 4 voices, and was last updated by  Alex Rollin 5 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #498930

    Bailey Griswold
    Full Member
    Post count: 20

    Hi there,

    First of, thank you so much for answering my other questions!

    The problem that I am encountering now is that I do not want the listings page to display a certain type of an image in the slideshow. So, I want to do display:none for one kind of image (which is the default image that I am uploading) on those listing pages.

    Below is the attached screenshot. The crossed area is what I do not want to display for certain listing pages that have that particular image.

    Thanks!

    #498942

    Kor
    Moderator
    Post count: 16516

    Hi Bailey Griswold,

    Thanks for your post. You can remove it by editing the details template https://wpgeodirectory.com/docs-v2/templates/details/ and removing the gd_post_image shortcode. Could you give it a try?

    Thanks!

    #498963

    Bailey Griswold
    Full Member
    Post count: 20

    Hi Kor,

    Thank you for the quick response. So, the image that you are seeing there in the previous screenshot which has a cross mark is what I want to remove, and the solution you proposed will totally work if I wanted to remove for ALL listings.

    However, I want to remove for ONLY those listings that DO NOT have a featured image and have only a default listing image for Archive page display (that I have set from GeoDirectory – Settings – Design (tab) – Archives (subtab) – Listing default image) . Below is the attached screenshot.

    I did:
    .single-gd_place .geodir-post-slider .geodir-image-0{
    display:none
    }

    So it worked for disappearing the image from the details page, but I want to make the whole slideshow disappear if the image class is: geodir-image-0 (which is the default image class).

    The second image is when I apply the CSS.

    Thanks,
    Parth

    #499046

    Kor
    Moderator
    Post count: 16516

    Hi Bailey Griswold,

    Thanks for your reply. Could you please share the URL of the page in question here so that I could take a better look at it?

    Thanks!

    #499143

    Bailey Griswold
    Full Member
    Post count: 20
    This reply has been marked as private.
    #499171

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #499187

    Bailey Griswold
    Full Member
    Post count: 20
    This reply has been marked as private.
    #499317

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #499378

    Bailey Griswold
    Full Member
    Post count: 20
    This reply has been marked as private.
    #499386

    Bailey Griswold
    Full Member
    Post count: 20
    This reply has been marked as private.
    #499592

    Bailey Griswold
    Full Member
    Post count: 20
    This reply has been marked as private.
    #499627

    Alex Rollin
    Moderator
    Post count: 27815

    If you want the GD Post Images to disappear if there are no images, then you should remove all the fallback images from the system and it will do that automatically.

    https://wpgeodirectory.com/docs-v2/integrations/images/#fallback

    #499644

    Bailey Griswold
    Full Member
    Post count: 20
    This reply has been marked as private.
    #499663

    Alex Rollin
    Moderator
    Post count: 27815

    No, the default/fallback images will be used anywhere that GD Post Images is used, so, you will need to remove that one, too.

    #499786

    Bailey Griswold
    Full Member
    Post count: 20

    But shouldn’t the default fall back image NOT be used anyway when I say in the GD settings that I only want the fall back image on the archive page and not the detail page?

    Like I want the gd post image shortcode to be there in the GD details page because some of my listings have a featured image, but the rest do not- and for those I do not need a fallback image on the detail page, but only on gd archive and gd archive item.

    Hope that makes it a little more clear.

    Thank you.

Viewing 15 posts - 1 through 15 (of 23 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