WordPress.org

Forums

Elisium
[resolved] "Latest Articles" at bottom of Home Page/Index (3 posts)

  1. sq2f
    Member
    Posted 1 year ago #

    Where in the CSS can you manipulate the number of Latest Articles to be previewed on the Index page when you have made it your static home page?

    By default, mine only shows four - however, all of the previews/demo's I've seen of the Elisium theme have shown 5. I have tried Chrome "Inspect Element" to search for this but any place it leads me back to the CSS does not result in any changes on the live site.

    frc.sparq2flame.com

    Thanks!

  2. We Create Web Designs
    Member
    Theme Author

    Posted 1 year ago #

    You need to go to the index.php template file and there you'll be able to change the code to show the number of articles. It's not a CSS thing, it's in the .php

    <?php $recent = new WP_Query("showposts=4"); while($recent->have_posts()) : $recent->the_post();?>

    Change the number of showposts from 4 to 5

    So, you'll have

    <?php $recent = new WP_Query("showposts=5"); while($recent->have_posts()) : $recent->the_post();?>

  3. sq2f
    Member
    Posted 1 year ago #

    AWESOME! Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic