Change CSS For Post Title
-
I am trying to change the css of the title of the post (can see here http://nuttyhiker.com under Latest Blog Post)
I have gone in and changed the line to:
<h2 class="posts-in-page-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>and added this to the css file:
h2 a.posts-in-page-title {
text-shadow: 1px 1px 1px rgba(59,59,59,1);
font-weight: bold;
color: #000000;
letter-spacing: 1pt;
word-spacing: 2pt;
font-size: 20px !important;
text-align: left;
line-height: 1;
margin: 0;
padding: 0;
}But it is not reflecting the changes.
Here is the complete code of my php file that I copied over into my theme file (so I could add a featured image):
<!-- NOTE: If you need to make changes to this file, copy it to your current theme's main directory so your changes won't be overwritten when the plugin is upgraded. --> <!-- Start of Post Wrap --> <div class="post hentry ivycat-post"> <!-- This is the output of the post TITLE --> <h2 class="posts-in-page-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- This is the output of the excerpt --> <div class="entry-summary"> <!-- This will output of the featured image thumbnail --> <div class="featured-image"> <?php the_post_thumbnail( array(180,9999), array('class' => 'alignleft')); ?> </div> <?php the_excerpt(); ?> </div> <!-- This is the output of the META information --> <div class="entry-utility"> <?php if ( count( get_the_category() ) ) : ?> <span class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'zerogravity-pro' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> </span> <span class="meta-sep">|</span> <?php endif; ?> <?php $tags_list = get_the_tag_list( '', ', ' ); if ( $tags_list ): ?> <span class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'zerogravity-pro' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> </span> <span class="meta-sep">|</span> <?php endif; ?> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'zerogravity-pro' ), __( '1 Comment', 'zerogravity-pro' ), __( '% Comments', 'zerogravity-pro' ) ); ?></span> <?php edit_post_link( __( 'Edit', 'zerogravity-pro' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div> </div> <!-- // End of Post Wrap -->What am I missing for it to not work?
The topic ‘Change CSS For Post Title’ is closed to new replies.