How to bold/centre text within php code
I moved a field outside the loop into the sidebar thanks to help from this forum. I also added the field which labels it, that worked great. Now I just want to change the text of that label to bold and centred.
I found this instruction - add the following code: { text-align:center; font-weight:bold; }
but I can't work out where to put it within the code you gave me which is:
<?php
global $wp_query;
$postid = $wp_query->post->ID;
echo get_post_meta($postid, 'cp_label', true);
?>
I put it in various places within the above but none of them worked. Could someone just show me how/where to apply the changes?
Thanks