• Resolved mkellam2

    (@mkellam2)


    Hi,
    I am trying to understand the WordPress block editor and having trouble finding others with the same issue.

    I have been trying to create a couple of blocks – For one of them, I need to have some words in one sentence a larger size than the rest of the words in the same sentence. If I try to do this in the Paragraph block by highlighting the text I want bigger and choosing a bigger size, all of the text in the block changes, not just the highlighted text.

    I have the same issue if I try to make a couple of words in the sentence red but leave the others default black.

    I tried using the inline code feature in the block, but it seems to display the code rather than change the element.

    What would be the proper way to do this in the block editor?
    In the past, I would have forced it into classic mode and coded it myself, but I prefer to learn the new system and get with the times instead of forcing classic indefinitely. ??

    Thank you in advance!
    Mike

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @mkellam2

    To change the color of a selected within a block, you need to select the text, click on the down arrow and then on Text color. Here is how I am doing it.

    For text size, there is no way to do it in the block editor. However, you can use <span> to do it. Here is the solution posted.

    Good luck

    Thread Starter mkellam2

    (@mkellam2)

    Hi Francisco,
    Thanks a bunch for your help! That worked on both counts.

    When I originally posted the question, even if I highlighted the text, all the text changed colors. Maybe there was a glitch in the block I was using. On a new test post, this worked perfectly.

    Ans I did not realise we were able to edit code inside the blocks, so the span worked perfectly for size, too.

    Thank you for your answer!

    Mike

    Thanks. This helped me too ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple text sizes or colors in one block?’ is closed to new replies.