• Resolved HELLAWYER

    (@hellawyer)


    Hi,
    1) how can I change the way of displaying the images? I tried with several different WP themes, but always the same problem: It displays only a part of every image ( cropped). I want the system to display the hole image.
    2) Is it possible to show the adverts in 3 rows instead of 2?

    https://www.ads-software.com/plugins/wpadverts/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Thread Starter HELLAWYER

    (@hellawyer)

    Thank you very very much for respond. But I really dont know which file I have to find to change this : file adverts_list columns=”3″ posts_per_page=”40″]

    Thread Starter HELLAWYER

    (@hellawyer)

    Found it…thanks…

    Thanks for the articles on how to change the image sizes on the list and the upload thumbs.

    What is the variable for changing the way they display on the actual ad page? I have stopped the cropping on the two sizes mentioned here, but can’t figure out how to stop it cropping on the display page.

    Help!

    Plugin Author Greg Winiarski

    (@gwin)

    Right now there is no filter that would allow to do that.

    Really? That is very disappointing to hear because it makes what would otherwise be a very nice plugin completely useless. Surely you must have another way of displaying the uploaded images on the page for the ad?

    Plugin Author Greg Winiarski

    (@gwin)

    Completely useless? … ok then.

    The image used on ad details page is ‘large’, so you can use the same code as here https://wpadverts.com/documentation/custom-image-sizes/ just replace “adverts-upload-thumbnail” with “large”, of course this will affect all posts/ads/pages and so on as all of them are using size “large” i suppose.

    If nothing else you can change how images are displayed in wpadverts/templates/single.php file, this will require some PHP knowledge.

    Thanks.

    Please don’t take offence at my “useless” comment, I didn’t mean it in a disdainful manner.

    Consider that many images used to advertise items for sale are taken in a portrait orientation. Under the current coding what happens is that those images (when displayed on the ad page) are literally cut off at the top and the bottom making them pointless.

    What I have done to try and work around this problem (and it is a big problem for an otherwise perfect plugin) is to increase the size of the slide container so that it is a large square 750x900px and almost accommodates an entire portrait oriented image, then move that below the ad detail in the template.

    It would be better though if you could make it so that the slider box thing shrinks down portrait images to fit its height. Maybe there’s an easy way to do this? I’m just a hack, not a real programmer.

    Plugin Author Greg Winiarski

    (@gwin)

    In one of next versions i will most probably make an update that will allow to replace the default image slider with something else, that should be helpful.

    That would be great.

    What I have done to try and work around this problem (and it is a big problem for an otherwise perfect plugin) is to increase the size of the slide container so that it is a large square 750x900px and almost accommodates an entire portrait oriented image, then move that below the ad detail in the template.

    It would be better though if you could make it so that the slider box thing shrinks down portrait images to fit its height. Maybe there’s an easy way to do this? I’m just a hack, not a real programmer.

    How to fit images inside the slider without cutting off its edges, the easy way:

    Replace img height:auto; with

    #slides1 img {
    max-height: 100%
    }

    which will force the image to fit inside its container heightwise.

    If your themes background colour isn′t white, it will leave a ugly white background box, so you should also style that to look better:

    #slides1 li {
        background-color: #fff;
        border: 0px solid #fff;
    }

    Worked for me.

    Thank you!

    Mr.Platypus please can you tell me where the file is to edit?
    At the moment the photos on the adverts list page and main page are cropped rather than showing resized versions, this makes it impossible to see what is being advertised.

    I added the code in the second to last post here:

    https://www.ads-software.com/support/topic/crop-images-3

    to my functions.php file in my theme directory and it doesn’t work, I even tested the code with the default wordpress theme. ??

    Just add it to your themes style.css file. From there, it will override the plugins styling and replace it with its own.

    Thank you for your help :).

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘DISPLAY IMAGES’ is closed to new replies.