Site logo

Archived topic

Custom Text Color not saving

3 replies · Started by Louis on October 11, 2017

Viewing posts 1–4 of 4

Problem:
I highlight some text.
Choose a custom color.
Works during the session. I see color I selected in one of the Custom boxes at the bottom of the chart of colors.
When I come back, I need to re-enter the RGB numbers again.
How do I save this so I do not have to change it every time.
Thanks.

Hi there,

Using lots of inline style is not recommended.

Might be best to do this in the text editor:
<span class="special-color">special color text here</span>

Then add this CSS:

.special-color {
    color: #353e84;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

This way when you want to change the color, you only have to do it once in the CSS.

Thank you Leo.
After reading though it, if I understand, I would still have to edit the HTML on the page each time.
If that is correct, it would probably be as big a hassle.

You would just have to change the text between the span tag.

This archived topic is closed to new replies.