Support » Plugin: WPAdverts - Classifieds Plugin » Preview doesn’t show picture

  • Resolved Jen

    (@jen-norell)


    Hey Greg,

    It came to our attention (from a client of ours) that when an anonymous user goes to post an ad, the picture in the preview for an ad doesn’t show up so they can’t proof the pictures before submitting the ad. Is this something that would be easily fixable?

    Thanks…

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Jen

    (@jen-norell)

    Also, I was wondering if there is a way to make the Publish Listing show up better for customers? It seems to be a usability problem that we’ve experienced ourselves and also our client. It is currently on the bottom and has been overseen and so the ad didn’t get submitted. Is there a way to move it to the top or find another solution to help it become more apparent?

    Thanks…

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. i am not sure, are you able to reproduce this issue on the demo site? The images seem to be showing there in the preview just fine.

    2. you can move the Listing Type field to the top by adding the code below in your theme functions.php file

    
    add_filter( "adverts_form_load", "move_listing_type_to_the_top", 1000 );
    function move_listing_type_to_the_top( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( in_array( $field["name"], array( "_listing_information", "payments_listing_type" ) ) ) {
            $form["field"][$key]["order"] = 0;
        }
      }
    
      return $form;
    }
    
    Thread Starter Jen

    (@jen-norell)

    1. Yes, I am also showing the same thing on the demo site. What I’m doing is clicking on List your ad. Then I put in all the information, including the pictures. I click on Preview. On this Preview page is where I don’t see the pictures that I submitted. This can be a potential issue if the customer/client wants to confirm the pictures before submitting the ad for review.

    2. Okay, thanks. We’ll give that a shot.

    Thread Starter Jen

    (@jen-norell)

    Actually, I didn’t realize that you were referring to your demo site…sorry. However, Jesse knew what you were talking about and Baby Bean was loaded with the images on the preview just fine. 😀 One thing that would be different is that we don’t have pricing listed. Maybe that is the difference. Any ideas?

    Thread Starter Jen

    (@jen-norell)

    Hey Greg,

    As Jesse figured out, it looks like the problem with the pictures not showing up in the preview page is a theme issue, which he fixed.

    We did try this…”you can move the Listing Type field to the top by adding the code below in your theme functions.php file,” but what we are wanting to do is to move the Edit listing and Publish listing buttons on the preview page.

    Thank you much!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, ohh to move the buttons on preview page it is the easiest to modify wpadverts/templates/add-preview.php file.

    Once you change it consider creating a child template file so your changes will not be overwritten on update https://wpadverts.com/documentation/child-themes-and-templates/

    Thread Starter Jen

    (@jen-norell)

    Okay, thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Preview doesn’t show picture’ is closed to new replies.