WordPress.org

Ready to get started?Download WordPress

Forums

How can I make my most recent post larger than the rest? (6 posts)

  1. kimielinski
    Member
    Posted 4 years ago #

    similar to twitter, like https://twitter.com/cnn

    thanks a lot!

  2. kimielinski
    Member
    Posted 4 years ago #

    any advice will be greatly appreciated

  3. Wex
    Member
    Posted 4 years ago #

    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

  4. kimielinski
    Member
    Posted 4 years ago #

    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

  5. turkey-istanbul
    Member
    Posted 4 years ago #

    Similer twiter nice :D

  6. Wex
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.