Add Full Size Login Background Image


Perfex CRM does not officially support login background image for admin area and customers area to keep the simplicity, but we created simple CSS snippet that will add perfectly aligned and full width background image in the admin area including fade over the image with pure CSS.

Admin area custom login background image

  1. If you added custom color for admin login background in Setup->Theme Style->General, remove it and set blank to prevent inline styles overwrite the image background style.
  2. Create custom.css file in assets/CSS
  3. Chose an image you want to be added as background. (at least 1280 x 720px)
  4. Upload image eq, in the media folder (or where you like the most). In our case will be in media and the url will be like this: http://yourdomain.com/crm/media/login_admin.png
  5. Open the custom.css file and add the following code:
/* Remove this if you dont want background overlay over the image or adjust per your needs */
body.login_admin:before {
    content: " ";
    background: rgba(31, 31, 31, 0.7);
    min-height: 100%;
    min-width: 100%;
    position: absolute;
}
body.login_admin {
  background: url('https://yourdomain.com/crm/media/login_customers.png') no-repeat center center fixed; /* The full image url*/
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

Here is our final result:

Add full size admin login background image

Customers area custom login background image

Follow steps from admin area custom login background image from 1 to 4.

Keep in mind that for step 4 you will need to rename to image to eq. login_customers.png

5. Open the custom.css file and add the following code:

body.customers_login {
  background: url('https://yourdomain.com/crm/media/login_customers.png') no-repeat center center fixed; /* The full image url*/
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

Don’t forget to replace the URL with your image URL


Did you find this article useful?



  • PDF Customization

    File Location This is a general example how to modify the invoice PDF file, check on the bottom of this article for other PDF documents file location...

  • Customers Templates

    If you want to change the client area look copy the existing main theme Perfex located in application/views/themes/ and rename to your theme...

  • Action Hooks

    Perfex CRM support various action hooks all over the code to give the buyers the best experience. Create file with name my_functions_helper.php&...

  • Applying custom CSS styles

    Perfex CRM supports custom.css file that will be autoloaded all over the CRM to apply your custom styles. This file don’t exists...

  • Overwrite Translation Text

    If you need to overwrite some translation text you can create your own custom language file. This is used if you want to change some text in the...