Prevent Images Crop on the Members Portal
  • 04 Jul 2023
  • 1 Minute to read

Prevent Images Crop on the Members Portal


Article Summary

We recommend image sizes for all Members Portal images to ensure they look clear and unpixelated on most screens. We automatically crop these images for optimal display on smaller screens. While this dynamic resizing works in most scenarios, it isn't ideal if:

  • You use images with text that can't be cropped to remain readable
  • You simply want to display the full image

You can easily fix that by adding a code snippet on the Admin Panel. This snippet automatically resizes the image to fit in whatever space is available rather than cropping it to fit.

MembersPortal_RemoveImagesCrop

You can reverse the automatic crop for :
  • Your home page banner
  • Events
  • Articles
  • Courses

  1. Log in to dashboard.nexudus.com if you aren't already.

  2. Click on the Built-in files folder.

  3. Click on the styles.css file.

  4. Copy the code snippets of all the images you want to resize instead of crop on the Members Portal.

Home page banner

.home-banner__image .img { background-size: contain !important; }

Events

.card-event__image { background-size: contain !important; }

Articles

.card-blog-post__image { background-size: contain !important; }

Courses

.card-course__image { background-size: contain !important; }
  1. Paste the relevant snippets in the styles.css file.

  2. Click the Save button. 


All done! Check your Members Portal to make sure images are now displayed as expected.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.