Magento 2 Background Images Extension - User Guide

At the backend, go to FME EXTENSIONS > Configurations. Here you can find the extension configurations.

General Configurations

  • Enable Background Images: Enable/Disable the background images module

general.png

How To Manage Background Images?

At the back end, go to FME EXTENSIONS > Manage Background Images. Here you will find the grid will all the background images. Click on the Edit button or click on Add New Image button to continue.

add new.png

Background Image Details

  • Title: Enter a title for the background image
  • Image Priority: Set background image priority
  • Status: Enable/Disable the background image
  • Select Type: Choose the type of as
    • Image
    • Color
  • Image: Upload a custom background image or select any image from the gallery (Note: Maximum file size is 2 MB)
  • Date From: Select the start time period from which the background image will be displayed on the frontend
  • Date To: Select the end-time period from which the background image will remove from frontend
  • Category: Select any category/categories on which this custom background image will be shown
  • CMS Pages: Select any CMS Page/Pages on which this custom background image will be shown

image details.png

Background Image Styling

  • Position: Set position of the background image

    • Left Top
    • Left Center
    • Left Bottom
    • Right Top
    • Right Center
    • Right Bottom
    • Center Top
    • Center Center
    • Center Bottom
  • Size: Set size of the background image

    • 1000px 1000px
    • 750px 750px
    • Vertical Banner
    • Horizontal Banner
    • Full Screen
    • Cover
  • Attachment: Specify the attachment style as

    • Scroll
    • Fixed
    • Local
    • Initial
    • Inherit
  • Repeat: Choose repeat type

    • Repeat
    • Repeat-X
    • Repeat-Y
    • No Repeat
    • Space
    • Round
    • Initial
  • Clip: Choose the clip style

    • Border Box
    • Padding Box
    • Content Box
    • Initial
  • Origin: Choose the origin style

    • Padding Box
    • Border Box
    • Content Box
    • Initial
    • Inherit

styling.png

Select Products

Select any product/products on which this custom background image will be shown

attach products.png

GraphQL APIs

1. The following GraphQL query retrieves background image configuration for a specific product by ID. It returns styling-related attributes such as image, color, size, and CSS background options. Useful for rendering dynamic product backgrounds based on settings in the backend.

Query

{ 
  backgroundImageByProduct(product_id: 1) { 
 backgroundimage_id 
 title 
 status 
 postion 
 background_type 
 sort_order 
 date_from 
 date_to 
 image 
 color 
 attach 
 size 
 repeat 
 clip 
 origin 
  } 
} 

2. The following GraphQL query fetches background image settings for a specific category using category_id. It returns visual and layout properties like image, color, position, and display rules. Ideal for applying customized backgrounds to category pages based on admin-defined data.

Query

{ 
  backgroundImageByCategory(category_id: 5) { 
 backgroundimage_id 
 title 
 status 
 postion 
 background_type 
 sort_order 
 date_from 
 date_to 
 image 
 color 
 attach 
 size 
 repeat 
 clip 
 origin 
  } 
}

3. The following GraphQL query retrieves background image settings for a CMS page using its identifier (e.g., "home"). It includes visual styling details such as image, color, positioning, and CSS-related options. Useful for dynamically rendering backgrounds on CMS pages based on configured settings in the backend.

Query

{ 
  backgroundImageByCms(cms_identifier: "home") { 
 backgroundimage_id 
 title 
 status 
 postion 
 background_type 
 sort_order 
 date_from 
 date_to 
 image 
 color 
 attach 
 size 
 repeat 
 clip 
 origin 
  } 
}
Compatible with 2.1.x, 2.2.x, 2.3.x, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7
69.99 Community
$269.99 Enterprise