• Resolved wpquestions2018

    (@wpquestions2018)


    Hi Greg,

    I have tried to change image size of ad size on this page and nothing no matter what dimensions i put.

    I am using list format and i want the images to be bigger on this specific page, but nothing changes even after making many tries and changes, i have even tried unticking the crop and nothing changes, i want the image to be actual 310 X 190 because the once there arent.
    This is the image that appear on the list before you go to the actual ad

    Kindly check and advice

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter wpquestions2018

    (@wpquestions2018)

    Greg,

    I wish images from this page https://sellacar.co.ke/adverts/ would look like this page https://www.olx.co.ug/vehicles/cars/

    that big please

    thanks

    Plugin Author Greg Winiarski

    (@gwin)

    You can use the default image sizes on the [adverts_list] by overriding the CSS code with this one

    
    .advert-img {
        height: auto !important;
        width: auto !important;
    }
    

    but i do not recommend doing it as the image sizes will get unpredictable and will break the layout the best way to do that would be to customize the wpadverts/templates/list-item.php file.

    Thread Starter wpquestions2018

    (@wpquestions2018)

    It doesnt work while i paste on css, what do i add on the wpadverts/templates/list-item.php file for the images to be bigger

    Plugin Author Greg Winiarski

    (@gwin)

    It depends on what are you trying to achieve but if you want to have images like OLX, that is 170×170 px then you would need to change

    
    <div class="advert-img">
    

    to

    
    <div class="advert-img" style="width: 170px; height: 130px; position: relative;">
    

    change

    
    <div class="advert-post-title">
    

    to

    
    <div class="advert-post-title" style="margin-left:200px>
    

    and

    
    <div class="advert-published ">
    

    to

    
    <div class="advert-published " style="clear:none">
    

    Now if you resize your adverts-list images to 170×130 it will display similarly as OLX.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image Size too small’ is closed to new replies.