Image Best Practices

Overview

Format images to the appropriate size before uploading them into the File Manager. This is true for all images, whether they are being used in the image menus, as icons, or elsewhere. Keep the following in mind:

Follow these naming convention and file management best practices for images:

Administration

ClosedUsing Images in the Header & Footer


ClosedUsing Images in Config

ClosedUsing images in Group Labels

  • Useful for branding, design consistency, and visual appeal.
  • Can help to differentiate Groups. This makes the page feel more organized and structured.
  • Be mindful of image size.

ClosedUsing Images in the Commerce Process


ClosedUsing Images in Document Engine


ClosedUsing Images in File Manager

  • Upload your images to the File Manager using the actual size and resolution with which they will be displayed.
  • Do not let your images be re-sized or stretched.

    Images can be secured within the File Manager. For more information, see the topic File Manager.
    For more information on using the File Manager, see the topic File Manager.

ClosedReplacing Default Icons

Replace a file in File Manager only in situations where it is absolutely necessary. Follow these steps to determine the best approach:

  1. To hide the icon, follow best practices for hiding elements within the CSS. For more information, see the topic Styling Best Practices.
  2. Confirm that the icon is not used anywhere else in the site where you wouldn't want it changed.
  3. Identify if the icon image is defined in the HTML or CSS. This will determine how you can change the image.
    • HTML-defined icons: If the image URL is located within the HTML, then the URL cannot be edited to display a different image. You must replace the file itself in File Manager.
      • Confirm that you wish to replace this image site-wide. Check the rest of the site to see where else the image may be used.
      • Create a copy of your old image before you place your replacement image in the File Manager.
    • CSS-defined icons: If you do not see the image URL in the HTML, find the CSS that assigns the image URL via a "background" or "background-image" line. You can replace this image with a new file and altered CSS.
      • Add your replacement image to the File Manager
      • Using the new image's URL, manually override the background-image value in the stylesheet.
      • You have flexibility with the specificity of your icon replacement because it is not site-wide. You can replace the icon only in certain places and leave it alone elsewhere.
    Maintain a record of any files you have replaced or added in the File Manager. This helps ensure a smooth migration from test to production.

    Your replacement icons should be created or edited by a professional.

    The icon should be an image that is either not owned or copyrighted by any entity, or is owned or copyrighted by an entity that has given permission for its use.

    The icon should be created or edited in a program like Photoshop that preserves transparency.

    PNG is the recommended format for new files.

ClosedExample: No existing image URL

  1. View the HTML source.
  2. You find that there is no image URL, but only the following code:

    <div class="action-icon action-icon-visible line-item-edit" actionid="4654394" title="Edit"></div>
    Note the following CSS code with the URL:
    .line-item-edit {
    background-image: url("/img/gxt/edit.png");
    }
  1. Obtain an approved image, preferably of the same height/width.
  2. Upload this image to File Manager as edit_new.png. For more information on secure files, see the topic File Manager.
  3. Enter the Alt or Commerce stylesheet and properly override the URL, such as with the following sample code:

    .action-icon-bar .line-item-edit {
    background-image: url("/img/gxt/edit_new.png");

ClosedExample: Existing image URL

  1. You wish to use a blue plus icon instead of a green one in your Commerce Action button, Add Line Items.
  2. View the HTML source. It shows you that the plus icon URL is written in the HTML itself:

    <img border="0" src="/bmfsweb/myClient/image/Icons/add.png" style="width: 16px; height: 16px; top: -1px; left: -3px; position: absolute;">
  1. Replace your add.png image in the File Manager.

    A background image won't override the code.

  2. Make a reminder for future migrations that this file needs to be replaced.

Notes

Images can be secured within the File Manager, for more information, see the topic File Manager.

Images can be added to the Mobile Home Page Punch-Ins using the image Browse/Upload function, located on the Admin Home Page.

The recommended maximum image width and height: 235 px by 150 px.

For more information on Mobile, see the topic Mobile Overview.

Related Topics

Related Topics Link IconSee Also