• Resolved audunmb

    (@audunmb)


    Is there a way to add <small> to a block or text in a block without using the html block? Using text size is not what I’m looking for, I want to add the semantic tag.

    There might be something obvious I’ve overlooked, but I tried to google with a lot of variations, and I can’t find it.

    • This topic was modified 2 years, 6 months ago by audunmb.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The Simple HTML Rich Text for Block Editor does this. It hasn’t been updated in a few WP versions, but I just tested it to make sure it works.

    There may be other plugins if you want to search around a bit in the plugin directory. Essentially, you’re looking for plugins that extend “Rich Text” in the editor.

    Thread Starter audunmb

    (@audunmb)

    Thanks. WordPress now add some of those rich text options, but not all, so I was hoping to solve it without yet another plugin.

    There are basically two options when using the Rich Text controls: 1) use a plugin or 2) write a custom plugin.

    I’d be happy to help with option #2 if you feel comfortable building a plugin and compiling custom JavaScript. I don’t think the code itself would be overly complicated for the feature, but you’d have to be able to package it all together. But, building plugins is a bit beyond the scope of the support forums. And, in the end, it wouldn’t be much different from what you’d get installing an existing plugin.

    An alternative option to using any plugin is to use the Custom HTML block and write the HTML you need in special circumstances. For example, you could add something like this inside it:

    
    <p>This is a paragraph with <small>some small text</small> inside of it.</p>
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Apply ‘small’ to text in a block’ is closed to new replies.