By default, the only customization option for the Tooltip Design Element is the placement of its pop-up content:
This article will demonstrate how you can customize the color and font size of the Tooltip title using Custom CSS:
TABLE OF CONTENTS
- Prerequisites
- Step-by-step Tutorial
Prerequisites
- You must have the latest version of ShortPoint SPFx installed on your SharePoint environment.
- You must be a ShortPoint Designer with an active license.
- You must already have the Tooltip Design Element on your SharePoint page.
Step-by-step Tutorial
There are two ways to customize the color and font size of the Tooltip title on your page. Follow the option that best suits your needs.
Option 1: Customize a Specific Tooltip Title
This option allows you to customize the color and font size of a single Tooltip title on your page. Copy the code below and click Get Started:
color: red;
font-size: 28px;
Step 1: Edit the ShortPoint Web Part
- Go to the SharePoint page you want to use and click Edit:
- Click the close icon to exit the Toolbox:
- Click the ShortPoint tag.
- Select the Edit properties icon:
Step 2: Copy the code
- Copy the Custom CSS code below:
color: red;
font-size: 28px;
Step 3: Edit the Tooltip Design Element
NOTEBefore proceeding, make sure you already have the Tooltip Design Element on your page. To add it, check out How to Customize the Tooltip Design Element.
- Click the Tooltip tag:
- Select the cogwheel icon:
Step 4: Paste the code
- Click the next icon:
- Go to the Custom CSS tab.
- Paste the code.
Step 5: Save
- Click the green check mark.
- Click the eye icon to see your page in real-time:
- Click Save to apply your changes:
Option 2: Customize All Tooltip Titles on your Site Collection
This option allows you to customize the color and font size of all Tooltip titles on your site collection. Copy the code below and click Get Started:
.sp-type-tooltip { color: red !important; font-size: 32px !important;}
Step 1: Open Theme Builder
NOTEBefore proceeding, make sure you already have the Tooltip Design Element on your page. To add it, check out How to Customize the Tooltip Design Element.
- Go to the SharePoint page you want to use and click the ShortPoint icon:
- Select Theme Builder.
Step 2: Copy the Code
- Copy the Custom CSS code below:
.sp-type-tooltip { color: red !important; font-size: 32px !important;}
Step 3: Paste the Code
- Go to Utilities:
- Select Custom CSS:
- Paste the code.
- Customize the color and font-size values according to your preferences.
- Click Apply:
Step 4: Publish
- Once satisfied, click Publish:
That’s it! You've now learned how to customize the appearance of Tooltip titles in your Tooltip Design Elements.
Related articles: