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 6 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
July 22, 2019 at 3:49 pm #498930
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!
July 22, 2019 at 5:04 pm #498942Hi 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!
July 22, 2019 at 8:34 pm #498963Hi 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,
ParthJuly 23, 2019 at 6:11 am #499046Hi 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!
July 23, 2019 at 2:21 pm #499143This reply has been marked as private.July 23, 2019 at 4:57 pm #499171This reply has been marked as private.July 23, 2019 at 6:10 pm #499187This reply has been marked as private.July 24, 2019 at 7:08 am #499317This reply has been marked as private.July 24, 2019 at 2:31 pm #499378This reply has been marked as private.July 24, 2019 at 3:22 pm #499386This reply has been marked as private.July 25, 2019 at 3:35 pm #499592This reply has been marked as private.July 25, 2019 at 6:14 pm #499627If 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
July 25, 2019 at 7:46 pm #499644This reply has been marked as private.July 25, 2019 at 8:28 pm #499663No, the default/fallback images will be used anywhere that GD Post Images is used, so, you will need to remove that one, too.
July 26, 2019 at 2:32 pm #499786But 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.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket