Focus Mode: Customize Page Title

Updated 2 years ago
by Dave Warfel

When using LearnDash focus mode, the page title is largely styled by your theme, not by LearnDash. The font-size, font-weight, and color are decided by your theme. But with some fairly simple CSS, you can customize the look of these lesson/topic/quiz titles.

Use the following CSS to adjust the size, weight, and color of your focus mode page title:

.ld-focus-content > h1 {
	font-size: 2rem;
	font-weight: 700;
	color: red;
}

Gradient Fill

Instead of using a plain color for your text, you can use a gradient instead. Replace the color line above with this instead. You can use a tool like cssgradient.io to generate the gradient code for you. The background-clip, -webkit-background-clip, and -webkit-text-fill-color lines should remain the same.

.ld-focus-content > h1 {
	background: rgb(131,58,180);
	background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

All CSS code should either be placed in a child theme’s main CSS file (typically style.css), or the Additional CSS area of the WordPress Customizer.

How to Add CSS to Your Site

Forum Rules

Be Kind & Patient

We’re here to learn and/or help each other. Please don’t be mean, rude, or condescending. Treat all members the way you should be treating dogs and your elders—with the utmost love & respect.

External Links

✅ Other websites that add value, help solve problems & contribute to the discussion. ❌ Affiliate links are prohibited. (Site owners may use affiliate links to help support the site.)

Promotion

✅ You may promote your own products/services if they are relevant to an existing discussion. You must disclose your relationship with the product(s).
❌ You may not create new posts simply to promote your products.

Non-LearnDash Topics

❌ General (free) Forum: Only LearnDash-specific topics are allowed.
✅ Premium Forums: You are allowed to post other questions tangentially related to LearnDash. Please use the appropriately named forum. If it doesn’t exist, use the “LearnDash Integrations” forum.

Our Right to Remove

We reserve the right to remove any content, at any time, for any reason. We can also merge one post with another. We will exercise caution when removing content and always try to provide an explanation.