Wstawiłem po <body> ale jakoś nie chce działać, poniżej przykładowo jak zrobiłem
Wstawiłem do kodu szablonu
Kod:
**********
$.noConflict();
jQuery( document ).ready(function( $ ) {
$('.page-header h1,.page-header h2,h2.item-title,.moduletable h1,.moduletable h3, .module h3').each(function(){
var text = $(this).text().split(' ');
if(text.length <2)
return;
text[0] = '<span class="firstWord">'+text[0]+'</span>';
if(text[1])
text[1] = '<span class="secondWord">'+text[1]+'</span>';
if(text[2])
text[2] = '<span class="thereWord">'+text[2]+'</span>';
$(this).html(
text.join(' ')
);
});
});
</script>
Wstawiłem do arkusza stylu css
Kod:
#secondWord{font-weight: bold;}
.secondWord{font-weight: bold;}