Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg: Change text color for individual words/characters #29264

Closed
lakellie opened this issue Dec 7, 2018 · 25 comments
Closed

Gutenberg: Change text color for individual words/characters #29264

lakellie opened this issue Dec 7, 2018 · 25 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Goal] Gutenberg Working towards full integration with Gutenberg [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@lakellie
Copy link

lakellie commented Dec 7, 2018

It is not possible to change the text color of individual words or characters in a block. Changing the text color changes it for the entire paragraph.

There was an open issue for this in the Gutenberg repo, but it was closed after a plugin was released which adds this functionality to Gutenberg.
The issue: WordPress/gutenberg#6080
The plugin: https://wordpress.org/plugins/advanced-rich-text-tools/

WordPress.com Simple site users cannot install plugins, so I'm opening an issue to suggest we add this functionality in Gutenberg in Calypso and keep track of user requests for this feature.

Steps to Replicate

  1. Add a paragraph block
  2. Highlight/select a single word
  3. Change the text color
  4. See that the text color of the entire paragraph changed

Here's a video of the steps to replicate: http://cld.wthms.co/t7hT48

What I expected

To only change the text color of the word I selected

Context/Source

This was a #user-report in 1628768-zen

@lakellie lakellie added [Goal] Gutenberg Working towards full integration with Gutenberg [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it labels Dec 7, 2018
@SiobhyB
Copy link
Contributor

SiobhyB commented Dec 19, 2018

There was another request for this in 1651442-z. The user would like to highlight an individual word/s with a certain colour. It'd be great to be able to guide them to do this without needing the Classic Edit block.

@KokkieH
Copy link
Contributor

KokkieH commented Dec 26, 2018

Another request from the forums

@azollafox
Copy link

Two request from the same user in 1671107-z and 9070190-HC

@KokkieH
Copy link
Contributor

KokkieH commented Jan 3, 2019

Another request via a comment on this Facebook post

@Aurorum
Copy link
Contributor

Aurorum commented Jan 10, 2019

@Aurorum
Copy link
Contributor

Aurorum commented Jan 12, 2019

+1 from me too, I'd really like to see this added - I use this frequently in posts.

@KokkieH
Copy link
Contributor

KokkieH commented Jan 21, 2019

Another request in https://en.forums.wordpress.com/topic/ability-to-add-colour-to-parts-of-text/, though it's a Business Plan site, so I've suggested the plugin available for this.

@katiebethbrown
Copy link

Another request in #7196772-hc.

@guicmazeredo
Copy link

Another request: #1760805-zd

@Aurorum
Copy link
Contributor

Aurorum commented Feb 16, 2019

@gwwar
Copy link
Contributor

gwwar commented Mar 12, 2019

@gziolo were there no plans on adding this in Gutenberg?WordPress/gutenberg#6080 (comment)

@gziolo
Copy link
Member

gziolo commented Mar 13, 2019

@ellatrix added some features recently to the core:
Screen Shot 2019-03-13 at 09 29 05

However, text color for individual words/characters was never considered as a core feature. It might be revisited later if there is high demand. There is API for adding more controls and there is Advanced Rich Text Tools plugins which implements the feature which is being discussed here.

@Aurorum
Copy link
Contributor

Aurorum commented Apr 17, 2019

@Automattic Automattic deleted a comment from kylemcph Apr 19, 2019
@nerdyandawesome
Copy link

+1 request.

@trainoasis
Copy link

+1 for sure!

@cecoates
Copy link

Another: #hc-14673881

@Pisoko
Copy link

Pisoko commented Aug 23, 2019

Come on!^^ +1

@Aurorum
Copy link
Contributor

Aurorum commented Aug 23, 2019

WordPress/gutenberg#16014 looks like it could solve this

@kriskarkoski
Copy link
Contributor

12056080-hc

@AtrumGeost
Copy link
Contributor

Another request: 18249597-hc

@davipontesblog
Copy link
Contributor

This is now available on simple sites from the update to WordPress core 5.4:

Screen Capture on 2020-03-09 at 22-06-30

Closing this issue.

@strarsis
Copy link

strarsis commented Apr 1, 2021

Can this also be used for just setting the background color?
This can be very useful when the themes needs individual styling controls, e.g. for particular lines of text.

@justingolden21
Copy link

image

I don't see this in the gutenberg editor anywhere.

@github-actions
Copy link

github-actions bot commented Sep 9, 2022

Support References

This comment is automatically generated. Please do not edit it.

  • 1628768-zen
  • 1760805-zen

@cawa-93
Copy link

cawa-93 commented Mar 13, 2023

Does this allow you to change font-family for single word?

I have a design that combines several fonts and I can't figure out how to change the font for a single word in a paragraph or in a heading

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Goal] Gutenberg Working towards full integration with Gutenberg [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

No branches or pull requests