i know it would be <font color=”red”>New Movie:</font>
No – in theory, it would be <span class="red">New Movie:</span> with the class .red then appropriately styled in your theme’s stylesheet. However, you cannot add any HTML to the post title in the WP Editor.
Thread Starter
s7orm
(@s7orm)
So how would I add a different color to the title?
You could change the color of all post titles by amending the CSS in your theme’s stylesheet.
Thread Starter
s7orm
(@s7orm)
Well I just want to change certain text in the title. If seen it before on another blog that’s using wordpress
Can you post an example url?
Thread Starter
s7orm
(@s7orm)
http://www.strikegently.com is one off the top of my head. Ill try to find some more.
That’s a highly customised theme. My guess is that they may be using custom fields to add extra markup/CSS to post titles.
Thread Starter
s7orm
(@s7orm)
so is there any way i could do that?
Have a look at the custom fields link I gave above. It would require a fair amount of semi-advanced theme editing.
the example link seems to automatically(?) add extra info to newer posts of a certain category – such as the ‘new music video new’ stuff – not multicolor post titles.
for that you could add a selected category to some posts at some times, which would needed to be checked by the code of the post title; which could also be automatically for a certain time span (as in the example below):
something like:
<?php if( in_category('new-movie') {
$now = date('U'); $published = get_the_time('U'); $edited = get_the_modified_time('U'); $new = '';
if( $now-$published <= 2*24*60*60 ) echo '<span class="new">New Movie: </span> ';
} ?>
<?php the_title(); ?>