Secondary title does not work anymore after WP update

[ad_1]

Hi @carullamuehr,

Thanks for bringing this to my attention.

I’ve just tried to reproduce this issue by installing a fresh instance of WordPress 6.6.2 and the current version of Secondary Title, 2.1.0. I used your title format:

%title%<br><span style="color:#ffffff;font-size:14px!important;text-transform: none;">%secondary_title%</span>

The style as set in the style attribute of the <span> tag was stripped out of the HTML code in the front-end. I’m not sure why WordPress did this and will investigate it further.

For now, however, there’s a very easy fix for you:

  1. Replace the title format with %title%<br><span class="secondary-title">%secondary_title%</span> and save it
  2. Open your theme’s Customizer “Appearance -> Customize
  3. In the pane that opened on the left, scroll to “Additional CSS” on the bottom an open it
  4. Insert the following code into it:
.secondary-title { 
color: #ffffff;
font-size: 14px !important;
text-transform: none;
}

In my test, it worked and applied the style, just like before. I’ll update the documentation as soon as I’m able.

Let me know if that worked for you, and if yes, I’d be happy for a quick review!

Cheers,

Kolja

  • This reply was modified 2 minutes ago by thaikolja. Reason: Styling

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer