*

kriskoyk

  • *****
  • 305 posts
Photo in place of message in item.php
« on: November 16, 2023, 12:28:37 AM »
Instead of this message in item.php: "Seller has not uploaded any pictures", how can I make it show a photo as background?

This photo I uploaded I want to put

*

MB Themes

Re: Photo in place of message in item.php
« Reply #1 on: November 16, 2023, 02:14:56 PM »
you need to edit item.php and instead of that message, but there <img src="..."/> tag
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 305 posts
Re: Photo in place of message in item.php
« Reply #2 on: November 16, 2023, 05:02:13 PM »
I have put this code " <div class="home-empty">
                  <img src="<?php echo osc_current_web_theme_url('images/no-image-found-360x250.png'); ?>" /></div>
              <div class="image-empty"><?php _e('Seller has not uploaded any pictures', 'beta'); ?></div> " and both the message and the image work. So when there is no picture of the user, when a share is made on Facebook it pulls the picture I put. It's correct?


*

MB Themes

Re: Photo in place of message in item.php
« Reply #3 on: November 17, 2023, 09:07:56 AM »
Facebook should us OG tags (Structured data), but may get one from page as well.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots