WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] changing title's font size in archive page (10 posts)

  1. amlie
    Member
    Posted 7 years ago #

    hello

    i noticed that the title's font size when viewed in an archive page is smaller.
    i want it to be the normal size of a title's post.

    how can i change that ?
    i've been through "archive" but did not find anything related to the title's font size.
    also went trough "stylesheet" but did not find anything related to archive.

    it may seems a bit pernickety but... i want it this way as the posts will not be displayed in the front page but only when one clicks on the categories links (i removed the above sentence "you are viewing the archive for...").

    here is the url of the archive page of one category:
    http://www.editions-du-rognon.com/art/livres-d-artiste/

    thank you if you can help me / merci !

    amélie

  2. moshu
    Member
    Posted 7 years ago #

    Well, that's a Kubrick clone and it works in this way:
    On every page/view you have one
    h1 = blog title
    On the index, the posts' title is h2 (logical and semantically correct)
    On the archive page: the main title (archives for... - which you removed*) is the h2 and the posts title is h3.

    Now you have two choices:
    either edit your stylesheet and make h3 the same as h2;
    or to change the h3 to h2 in your archive.php file.

    ___________
    * your editing is not OK, you have this:
    <h2 </h2> - missing >

  3. amlie
    Member
    Posted 7 years ago #

    hello moshu,

    thank for your reply but...arrgg (means f...)... i don't picture at all what i have to do !

    the simplest way seems to edit the archive.php file (?).

    <?php $post = $posts[0]; // Contournement. Construit $post pour que the_date() puisse fonctionner. ?>
    <?php /* S'il s'agit d'une archive de cat�gorie */ if (is_category()) { ?>
    <h2 </h2>

    is what i have in it.

    How should i edit it ?

  4. whooami
    Member
    Posted 7 years ago #

    `<?php $post = $posts[0]; // Contournement. Construit $post pour que the_date() puisse fonctionner. ?>
    <?php /* S'il s'agit d'une archive de cat�gorie */ if (is_category()) { ?>
    <h2 </h2><---------------------------

    <h2 </h2>

    is not correct

    <h2> </h2>

    is.

  5. amlie
    Member
    Posted 7 years ago #

    ok, thanks you for this one.

    but then how to change h3 to h2 ?

    i do not see any h3 in the archive.php

  6. whooami
    Member
    Posted 7 years ago #

    but then how to change h3 to h2 ?

    It already is h2 .. do you not see what we have been writing?

    <h2> </h2> <h2> </h2> <h2> </h2> <h2> </h2> <h2> </h2>

  7. amlie
    Member
    Posted 7 years ago #

    <h2> </h2> is now well edited ! thanks to you.

    but my question remains. how to change the font size in the post's title of an archive page ?

  8. amlie
    Member
    Posted 7 years ago #

    ahhh! i found the "h3" in the archive.php file !

    did not see it the first time... here starting to be late...

    replace it with "h2" and... it worked !

    thanks moshu for the tip !

  9. moshu
    Member
    Posted 7 years ago #

    Well, that archive.php file (not page) has more than you just posted above.

    Find this:

    <?php while (have_posts()) : the_post(); ?>
    		<div class="post">
    				<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>

    That's the h3 you want to change!

    Edit. OK, we posted in the same time :)
    Glad you figured it out.

  10. amlie
    Member
    Posted 7 years ago #

    :)

    i had a look at your blog.

    yesterday i had a proposition to write a few pages about blogging (with wp) in a informatic book for german students, 16 years old (i live in berlin).

    so how to explain how to start use wp is starting to be on my mind !

    maybe i come back to you to exchange on this topic !

    although the best way is to tried by oneself ! and to have access to kind support !!!

Topic Closed

This topic has been closed to new replies.

About this Topic