Forums

Default Theme, where is the font of h1 post-title defined? (4 posts)

  1. chris-melchior
    Member
    Posted 1 year ago #

    I have changed the title of the posts, to h1 (rather than h2) for SEO reasons, but now need to change the font of the post-title as h1, so that it looks the same as it did when it was h2.

    How do I do this?

    thanks in advance for the info on this :)

    Chris

  2. chris-melchior
    Member
    Posted 1 year ago #

    I've got the font sizes correct now, just not the font color!!

    How do I force the font of the post-title to be black even though it has <h1> tags around it? How do I reduce the spacing before the post-titles, without reducing spacing before the header-text?

    Also, how do I force the font of the blog-info-name in the header to be white even though it has <h2> tags around it?

    Chris-

  3. alchymyth
    The Sweeper
    Posted 1 year ago #

    I have changed the title of the posts, to h1 (rather than h2) for SEO reasons, but now need to change the font of the post-title as h1, so that it looks the same as it did when it was h2.

    link to your site?

    are you working on the 'old' default theme (kubrick default) or on twenty ten?

    not knowing what you have edited, and if the titles also have css ids or css classes, or if some of the titles are linked, it is virtually impossible to give any advice.

  4. chris-melchior
    Member
    Posted 1 year ago #

    Thanks for your reply.

    I am using the Kubrick Default Theme.

    My single post code, now calls the header text as follows :-

    [please use the 'code' button to mark the code]

    <div id="header" role="banner">
    	<div id="headerimg">
    		<h2><a>/"><?php bloginfo('name'); ?></a></h2>
    		<div class="description"><?php bloginfo('description'); ?></div>
    	</div>

    ___

    and now calls the post title as follows :-

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    			<h1><?php the_title(); ?></h1>

    ___

    My StyleSheet.css is now as follows :-

    [huge amount of CSS code moderated - please post a link to your site]

    ___

    I've now got the font sizes OK, and just need to change the color of the header site-name text to white, and the color of the post title to black, and decrease the spacing before the post title.

    Thanks for any info on this :)

    Chris-

Topic Closed

This topic has been closed to new replies.

About this Topic