It’s time of year – sparkling lights, shopping, candles, tree lighting, house decoration, take picture with Santa, listen to Christmas songs, watch Christmas movies, Gift giving and gift exchanges, family meals, Christmas parties, shutdown computer, close the office.. Most of companies close for a day, week, or two weeks. Don’t forget to your Salesforce org ready for festive.

In this article I am going to explain, how Salesforce org feeling festive. To achieve, need to create a Visualforce image page and put it on the Lightning page. Please follow the steps below and make your org feeling festive today.

Note: Download or design image first. You can use any format / types of image, ex.GIF, JPEG, PNG, etc.

Step 1 – Create a Visualforce page

Go to the Set up -> Find Visualforce page form quick find box -> Click New -> Put necessary information. As shown in the screenshot below.

Create a Visualforce page

 

Now put below code. As shown in the screenshot below.

Note: Width and Height according your image size.

<apex:page showHeader=”false” title=”DisplayImage” sidebar=”false”>

    <apex:form >

        <table>

            <tr>

                <td width=”480px” height=”343px;” align=”center”>

                    <apex:image url=”image URL”/>

                </td>

           </tr>

        </table>

    </apex:form>

</apex:page>

Visualforce page Code

 

Click Save. As shown in the screenshot below.

 

APEX Code

Step 2 – Add Visualforce Page

Go to the Set up -> Find Lightning App Builder from quick find box -> Find your Lightning Page -> Click Edit (In this case, I want to put it on the page, so I choose Home Page). As shown in the screenshot below.

 

Lightning App Builder

 

Find Visualforce from Components -> Drag and drop -> Find Visualforce page name (you have created in the step 1) -> Click Save. As shown in the screenshot below.

 

Lightning App Builder - Add Visualforce page

 

Test the Result

See below screenshot. How Salesforce organization festive? Try to make your Salesforce org festive today.

 

Test the result

 

Note: You can add visualforce page any Lighting App, Record and Home page.

Sharing is caring!