• I am trying to bold my post titles using the following in the stylesheet:

    #newscontent h1{font-size:14px; color:#194583; font-weight:bold; margin-bottom:5px;}

    However on the live site the heading is still showing as 12px with #333 as the colour and not bold. I have set the page template (Single Post) with:

    <div id=”newscontent”>
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div id=”post-<?php the_ID(); ?>” <?php post_class(‘post’); ?>>

    <article>
    <h1><?php the_title(); ?></h1>

    What am I doing wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Might be the case your css is being overwritten.

    start with clearing the browser cache – CTRL F5 or reload…

    if this does not help, please post a live link to your site, to a post or page with the problem.

    what theme are you working with?

    Try this in your CSS:

    #newscontent article h1{font-size:14px; color:#194583; font-weight:bold; margin-bottom:5px;}

    This CSS is more specific and may help. Another option may be to add a class to the H1 tag and style it.

    You might want to inspect the element to see what styles are being applied and where. Post a link if you still have issues.

    If you want your style to take precedence, then add the !important declaration.

    For instance,

    h1{
      color: #fff !important;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bold Post Titles’ is closed to new replies.