Line break in Welcome title and/or Welcome message

Hi,

Moesia Pro.
I’d like to do insert a line break in my Welcome title, in order to get the welcome title displayed on 2 lines (without changing my actual fonts size…)
I tried to put a simple <br /> in the field but it doesn’t work, i.e. “<br />” is displayed instead of making a line break.
I guess, it’s a very simple issue to bypass…

Could you provide a solution about that ?

Many thanks for your help.

Ph.

Hello Feelv,

Please try to use the following CSS code in order to add second line text.

You can add CSS code in DashboardAppearanceCustomizeAdditional CSS (WordPress 4.7 and up). Also you can add CSS code directly to style.css file of your child theme.

div.welcome-info div.welcome-desc {
    content: 'Second line text';
    display: block;
}

Just replace Second line text with your own text.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Hi Roman,

I’ve done the needful,

I’ve Just pasted your code in Dashboard → Appearance → Customize → Additional CSS.

but it doesn’t work.
No 2nd line appear on screen

I’m using custom CSS, and also tried to paste your code there. No results

Can we go ahead ?

Thks for your support.

Ph V.

Can you please provide a link to your website in order to let me check it?

Kind Regards, Roman.

Ok Roman.

I’ve deleted your CSS for the moment.

The link : www.ressources.link

Thks for your update.

PhV

Okay, please try to use this CSS code instead of previous:

div.welcome-info div.welcome-title::after {
    content: 'Second line text';
    display: block;
}

Please let me know if you need more help.

Kind Regards, Roman.

It works !

Thanks Roman.

You are welcome! :slight_smile:

Kind Regards, Roman.