So im using wordpress and i display title and that title is more than one word.So i need to add in first word font-family:'font1';
and in the rest of them to add font-family:'font2';
. Any suggestion how can i do this?
<div class="main-title"><span><?php echo the_title(); ?></span></div>