Display Large Banner Images on Home Page in SuiteCommerce
Learn to display a large banner image on your SuiteCommerce homepage by editing templates and styling CSS accordingly.
To showcase a banner image on the homepage of your SuiteCommerce store, follow these essential steps to ensure your imagery is prominent and effectively styled.
Steps to Display a Large Banner Image
-
Prepare Your Image: Save your desired banner image as a
.jpgfile, specifically namedprices.jpg. If you do not have an image ready, you can create a screen capture of a sample image. -
Upload the Image: Place the
prices.jpgfile in your local workspace directory underassets/img. -
Edit the Homepage Template: Open the homepage template located at
Modules/Home@sc-<release>/Templates/home.tpl. Insert the following HTML snippet just above the slider section:html<div class="home-banner-prices"><img class="home-banner-prices-image" src="{{getThemeAssetsPath (resizeImage 'img/themepricesoutofthisworld.jpg' homeslider)}}"></div> -
Save Changes and Run Gulp: After saving changes to the
home.tplfile, execute the following command to update the site:nonegulp theme:localGulp will add the new image file to the manifest and restart the local server. You can now view your homepage in a web browser to check for updates. For instance, if utilizing
prices.jpg, you should see your updated homepage image. -
Style the Banner for Better Spacing: If the layout appears crowded, you can modify the spacing above the banner image by adjusting the CSS. Open the file located at
Modules/Home@sc-<release>/Sass/_home.scssand add:css.home-banner-prices {margin-top: $sc-margin-lv4;font-size: 0;} -
Final Step: Save the changes made to the
_home.scssfile. The local server continues running, recompiling the site’s files with every save. Once the recompile is complete, refresh your homepage to observe the new spacing adjustments.
Follow these steps to effectively enhance your SuiteCommerce homepage with a visually appealing banner that captures attention without causing clutter.
Frequently Asked Questions (4)
What are the prerequisites for adding a banner image to my SuiteCommerce homepage?
Where should I place my banner image file within the SuiteCommerce project?
How do I update the homepage template to include the banner image?
Is additional configuration in Gulp required after modifying the homepage template and styling?
Was this article helpful?
More in Commerce
- SuiteCommerce CAPTCHA Configuration Options and Setup
Configure SuiteCommerce CAPTCHA for enhanced security. Enable CAPTCHA for registration, login, guest checkout, and orders.
- Single Sign-On Integration for NetSuite Web Stores
Implement inbound single sign-on integration for NetSuite web stores using SAML or OpenID Connect for seamless access.
- Facets Management for Commerce in NetSuite
Facets management in NetSuite Commerce optimizes item search filters, enhancing performance and improving user experience.
- SuiteCommerce Analytics Data and Cookie Consent Integration
SuiteCommerce Analytics Data enables tracking of shopper behavior. This requires a cookie consent extension for user preferences.
Advertising
Reach Commerce Professionals
Put your product in front of NetSuite experts who work with Commerce every day.
Sponsor This Category