Check your markup. I see:
<a center"="" title="<p align=" href="http://misconceptions.us/did-mankind-really-progress/">Did Mankind Really Progress?<p></p>"><p align="center">Did Mankind Really Progress?</p></a>
this is the html code as seen from the browser:
<h2><a href="http://misconceptions.us/did-mankind-really-progress/" title="<p align="center">Did Mankind Really Progress?</p>"><p align="center">Did Mankind Really Progress?</p></a></h2>
besides being invalid html, it also breaks the output – you get the “> and the title twice.
reason: the html of your title is pulled into the title attribute of the link;
if you know where to access the code (possibly in index.php within the loop), try to change the code which looks probably like (or very similar):
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
into:
<h2><a href="<?php the_permalink(); ?>" title="<?php echo strip_tags(get_the_title()); ?>"><?php the_title(); ?></a></h2>
leave the centering of the title to the stylesheet:
add text-align: center; to this style in style.css of your theme:
.post h2 {
width: 486px;
line-height: 20px;
margin: 0 0 0 0px;
padding: 0px 0px 0px 0px;
font-size: 1.6em; /* Post title */
}
Thank you alchymyth and esmi.
I made the changes to the code in the index.php and the stylesheet.
The stylesheet one works fine and when I tried a new article the title centered.
But the other change has not stripped out the “>
I checked in three browsers and cleared the cache.
Be a pity if I have to do it manually 🙁
Jane
Instead of title="<?php echo strip_tags(get_the_title()); ?>", try using title="<?php the_title_attribute(); ?>".
http://codex.wordpress.org/Function_Reference/the_title_attribute
@esmi
Didn’t work either and I’ve gone back to the original code before going to bed.
Maybe the change needs to be made in more than just the one page?
And strange (to me anyway) that http://www.ourchangingglobe.com doesn’t have the problem.
Jane
I did consider trying to correct this via phpMyAdmin but finally went back and corrected the problem manually.
But thanks for the help.
I was silly, and should have simply looked at a way of centering the text using CSS rather than adding html to each post.
Jane