Support » Themes and Templates » How can I make my most recent post larger than the rest?

Viewing 5 replies - 1 through 5 (of 5 total)
  • any advice will be greatly appreciated

    Depends on which section you want to be bigger. Essentially, in your index.php file, you just need to add something like:

    <?php if(!isset($firstPost): ?>class="first-post"<?php $firstPost = 1; endif; ?>

    You can put that in your <div class="entry"> for bigger text, or in your <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> for a bigger title. Is that what you’re looking for

    sorry, i’m a complete noob, but what do you mean “You can put that in your <div class=”entry”>”

    because I do want to make the text and title bigger.

    thanks so much for the help, i truly appreciate it

    Similer twiter nice 😀

    Open up your index.php file, find the part that says <div class="entry"> and change it to <div class="entry<?php if(!isset($firstPost): ?> first-post<?php $firstPost = 1; endif; ?>">

    In your style.css, you’ll need to add something like:

    .post .first-post {
      font-size: 2em;
    }

    If you don’t know basic HTML or CSS, you’re going to have a lot of difficulty styling your theme though, I hate to say it. Best to hire someone to do it for you, if anything. Good luck.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How can I make my most recent post larger than the rest?’ is closed to new replies.