Skip to content

Add a custom attribute to the text formatting toolbar in the paragraph block editor to change to a secondary font-family

Notifications You must be signed in to change notification settings

gennarooo/secondary-font-family-attribute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secondary Font Attribute for the Wordpress Block Editor

Add a new button to the Wordpress block editor to change the font family for the selected text within the same paragraph.

How to Use

Install and activate the plugin.

The selected text will be wrapped within a span with the class "secondary-font-family"

<span class="secondary-font-family">selected text</span>

Just add to your theme a css declarartion with your styles for the secondary font:

.secondary-font-family {
	font-family: serif;
}

About

Add a custom attribute to the text formatting toolbar in the paragraph block editor to change to a secondary font-family

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published