Default image

  • Author
    Posts
  • Adanara77

    Good afternoon, how could I remove the image that appears by default when a seller does not put an image?

    ihordeveloper

    You can try overriding the listing image template part and removing the placeholder image https://github.com/hivepress/hivepress/blob/master/templates/listing/view/block/listing-image.php

    Adanara77

    i will try it

    Adanara77

    Sorry but I had left the page a bit and in the end I could not implement the image deletion that I had talked about in this post
    https://hivepress.io/support/topic/default-image/
    Forgive my ignorance, but where do I have to add the code?

    ihordeveloper

    You can override this template part by placing it within the “hivepress” subfolder of the child theme, check this topic for example https://hivepress.io/support/topic/child-theme-extend-message-send-link-php/

    Adanara77

    As I say in the other post I have created

    listinghive-child/hivepress/blob/master/templates/listing/view/block/listing-image.php

    within the child theme
    But it still doesn’t work

    I think there was a syntax error at the end of the code, but even removing it doesn’t work

    <?php endif; ?>

    </div>

    Adanara77

    hivepress/templates/listing/view/block/listing-image.php

    I have also tried to put it here as it says in github but nothing

    ihordeveloper

    I’m sorry, but customizations are not part of the free support that I offer for HivePress. You can replace the listing image part by copying it to the child theme’s “hivepress” subfolder (preserving the folder structure), then it’ll override the HivePress template part. Once you override it you can customize it (e.g. by removing the placeholder image from it). Please consider hiring someone via Fiverr or UpWork if you need customizations.

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

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.