By default, you can change the text color of an Image Carousel Design Element in the Design tab using the Text Color feature:
By using the ShortPoint Text Color feature, both the Title and the Description will have the same color.
In this article, you will learn how to customize only the Title or the Description text color using the Custom CSS feature. Follow the option that best fits your needs.
Customize Title Text Color | Customize Description Text Color |
TABLE OF CONTENTS
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 Image Carousel Design Element on your page.
Option 1: Changing the Title Text Color
This option will demonstrate how to change the text color of only the Title of the Image Carousel. Copy the Custom CSS code below before starting the interactive tutorial:
.shortpoint-image-carousel-title { color: blue;}
Step 1: Edit the SharePoint web part
- Go to the SharePoint page you want to use and click Edit.
- Click the ShortPoint tag.
- Select the pencil icon.
Step 2: Copy the Custom CSS
- Copy the Custom CSS code below:
.shortpoint-image-carousel-title { color: blue;}
Step 3: Edit the Image Carousel Design Element
NOTEBefore proceeding, make sure you already have the Image Carousel Design Element on your page.
- Click the Image Carousel tag.
- Select the cogwheel icon.
- Navigate to the Custom CSS tab.
Step 4: Paste the Custom CSS
- Paste the copied code in the field provided.
- Change the color value according to your preference.
- Click the green check mark once satisfied.
Step 5: Save
- Click the eye icon to see your page in real-time.
- Click Save to apply your changes.
Option 2: Changing the Description Text Color
This option will demonstrate how to change the text color of only the Description of the Image Carousel. Copy the Custom CSS code below before starting the interactive tutorial:
.shortpoint-image-carousel-description { color: blue;}
Step 1: Edit the SharePoint web part
- Go to the SharePoint page you want to use and click Edit.
- Click the ShortPoint tag.
- Select the pencil icon.
Step 2: Copy the Custom CSS
- Copy the Custom CSS code below:
.shortpoint-image-carousel-description { color: blue;}
Step 3: Edit the Image Carousel Design Element
NOTEBefore proceeding, make sure you already have the Image Carousel Design Element on your page.
- Click the Image Carousel tag.
- Select the cogwheel icon.
- Navigate to the Custom CSS tab.
Step 4: Paste the Custom CSS
- Paste the copied code in the field provided.
- Change the color value according to your preference.
- Click the green check mark once satisfied.
Step 5: Save
- Click the eye icon to see your page in real-time.
- Click Save to apply your changes.
Congratulations! You can now change the Title text color and the Description Text Color inside the Image Carousel using Custom CSS.
Related articles: