Add option to allow for rectangular logos - fixes issue 1976#2017
Add option to allow for rectangular logos - fixes issue 1976#2017lamdayap wants to merge 1 commit into
Conversation
alexsanford
left a comment
There was a problem hiding this comment.
Thanks for the contribution! 🎉
I see a few issues that we'll need to resolve. Let me know what you think.
-
Since we're using LESS, it would be better not to duplicate all of that CSS code. Could we just override the height instead? Also, we'll need to commit the built CSS file as well.
-
When I test this, it seems like it's not only a CSS issue. Since we're using the
thumbnailsize, WordPress has already cropped it to 150x150. So even with this PR, I don't see the full (rectangular) image. I wonder if we need to use themediumsize instead, and then resize it with CSS. What do you think? We should be able to do this by changing the call toget_the_company_logo( null, 'medium' ). -
I'm not sure how I feel about this being a setting. Do you think a filter would be good enough? So users who want to activate this would be able to do something like this:
add_filter( 'job_manager_allow_rectangular_logos', '__return_true' );
|
Thanks for submitting a PR! I agree with @alexsanford The check should probably be moved into Many users and themes also override the template files so by doing this we move the functionality and support into Since |
|
Closing this as there's no activity here for a while. |
Fixes #
Issues with rectangular logos being resized into a square causing a squished look: #1976
Changes proposed in this Pull Request
I added an option to in the job_listings admin page will dynamically adjust the css height property for company logos to auto so that users can display a rectangular logo. I made this an option in admin so that users have a choice of enforcing square logos still as it does create a neater look
Testing instructions
Go into the job listing's settings page on Admin and toggle on the
Rectangular logosoptionScreenshot / Video