• Resolved holoholo

    (@holoholo)


    On the post job page, the company logo is so tiny. I’ve tried adjusting this css in customize > additional css but it looks terrible whatever I try. Also, it’s not respecting “object-fit:contain”.

    Can someone help me get the logo looking normal/bigger/better?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter holoholo

    (@holoholo)

    Is there a filter that would work in snippets to make the logo rectangular, be contained and be a larger size? I see this discussion…but I can’t tell where it ended up.

    https://github.com/Automattic/WP-Job-Manager/pull/2017

    Plugin Author Peter Kiss (a11n)

    (@yscik8)

    By default the logo is using the “thumbnail” size provided by WordPress, which I believe is a square 150×150 as default. Some themes can change that. If the theme has support for Job Manager, it can also specify different sizes in the the_company_logo() calls in the templates.

    So for the logo to look good in bigger size that thumbnail size would have to be changed together with the CSS changes: https://codex.www.ads-software.com/Post_Thumbnails#Thumbnail_Sizes

    I made a post about this before, and was assisted with some settings and CSS tweaks–for me, setting the thumbnail size width and height to twice the pixel size that the logos are set to display at (to account for high-density / 4K displays) in the WordPress admin panel’s Settings > Media (and unchecking the “Crop thumbnail to exact dimensions” option, if it is checked), along with this CSS worked to contain rectangular logos while keeping them looking crisp:

    img.company_logo {
    object-fit: contain;
    }

    @holoholo

    The code @hastibe provided works out. This was somehting we put together some time ago in another thread.

    Please not that the CSS will work for new listings submitted after you changed the CSS. For all older listings you need to regenerate thumbnails

    • This reply was modified 9 months, 3 weeks ago by braehler.
    Plugin Support Joash

    (@joashrajin)

    Thanks for the information shared, @hastibe!

    Others in this thread can feel free to give it a try. As @braehler mentioned, you would likely need to regenerate thumbnails for the changes to reflect on existing listings.

    That said, the optimal solution would be for the author of your theme to add better support for this!

    Plugin Support Jay

    (@bluejay77)

    Hi there,

    It has been a while since we have heard from you, so I’m marking this topic as resolved.

    But if you have any further questions or need some more help, you’re welcome to reply here or open another thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Company logo too small and not being contained’ is closed to new replies.