resizing logo images to listing

This topic contains 7 replies, has 3 voices, and was last updated by  David Thomson 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #496853

    David Thomson
    Expired Member
    Post count: 37

    hi there, trying to resize the logo for our ‘training’ CPT on our listings.

    We have re-sized the logos for ‘companies’ CPT’s,’projects’ CPT’s and ‘project scope’ CPT’s on the archive item page but when i have added the custom css for the ‘training’ it does not work. Can you check if this is correct below or advise how i get the archive item logo image to be the same as the listing image on the other CPT’s.

    .geodir-image-container.geodir-image-sizes-medium.training_profile img {
    max-width: 150px;
    max-height: 150px;
    margin: 0;

    #496911

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #496958

    David Thomson
    Expired Member
    Post count: 37
    This reply has been marked as private.
    #497025

    Kor
    Moderator
    Post count: 16516

    Hi David,

    Thanks for your reply. Ok, let’s make some adjustments using custom CSS code. Let me know how it goes.

    .geodir-image-container ul.geodir-images li img {
        max-width:300px;
        object-fit: contain;
        height: 80%;
        margin-top: 0px;
    }
    #497038

    David Thomson
    Expired Member
    Post count: 37

    hi there, thanks for that. Awesome. Does that shortcode apply to all CPT’s of just the training one that i had problems with. I am adding some more CPT’s and it would be nice it they all just were the same size. Or do i need to add custom code for each CPT

    #497047

    Kor
    Moderator
    Post count: 16516

    Hi David,

    Thanks for your reply. It should target all listing images. But please let me know if you had issues with it.

    #497206

    David Thomson
    Expired Member
    Post count: 37

    Hi Kor,

    Some of the listings have gone weird as a result. Generally not centred, and / or getting cut off.

    1. The logos on the featured listings: https://onedecom.com/home/decommissioning-directory/

    2. The logos on the company listings:
    https://onedecom.com/companies/

    Login details below.

    Cheers

    #497208

    David Thomson
    Expired Member
    Post count: 37
    This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket