- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2017 06:21 AM
Hi All,
I am using custom homepage search widget cloning from OOB homepage search widget.
How to add background image for this particular widget.
Thanks in advance!!
Thanks & Regards,
Bubuprasad
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2017 06:24 AM
You could put a div tag around with a class that defines the background image.
<div class="myBackground">
// The rest of the HTML for the widget
</div>
CSS:
.myBackground {
background-image : url("location_of_my_image");
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2017 06:26 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2017 06:31 AM
Hi Swain,
In order to add a background image to your home page in SP: 1.Open your portal into the application 2.navigate to Homepage of the portal 3.Click on Container 1 and open it, Background image is located here.
Kristian!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2017 06:38 AM
Thank you all, I am marking Chuck's answer correct as I want to change background of only widget not the whole container.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2019 06:37 AM
I completely agree. Adding a background image to the container of the widget is different than the widget itself. There could be multiple widgets (or widget instances) in a container - you may only want the background image to be a applied to the widget.
Chucks method is right, but the issue I run into is images being migrated via update sets. I have trouble moving them between instances.