Apply style to a word inside a paragraph

Hi!

I have some paragraphs with Readymag standard styles applied.

Now, I want to style some words in bold, but I can’t modify a word without modifiying the whole paragraph.

I guess it’s easy with CCS, but no idea how to apply it just to a word inside a text widget.

Any idea?

Thanks in advance!

Hi @About_Studio you could use paragraph styles, but appreciate this can’t be done inside of a paragraph.

That said I’ve come up with this solution.

<style>
span {
    color: red;
    font-size: 10px;
}
</style>

<script>
var oldString = 'Readymag',
    newString = '<span>Readymag</span>',
    newText = $('p').text().replace(RegExp(oldString,"gi"),newString);

$('p').html(newText);
</script>