Adding new position for a recent article display

Hot WordPress Themes Support Forum WordPress Themes Clinic Adding new position for a recent article display

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #689
    jeff fortier
    Participant

    Hello
    I would like to add a 4th position for recent article on the front page.
    I would like it to be horizontal on top of the 3 recent article already on the front page and as wide as the three articles.

    Also I would like to know where do you change the article category to be displayed as recent article. Right now, even I create a new article category and create articles in that category, they will show on the front page in the recent article section.

    Thanks in advance for your help.

    #1804
    milos
    Moderator

    Hello,

    To show 4 posts on the front page you should do this:

    1) Edit /wp-content/themes/wp_hot_clinic/main.php and change line

    Code:
    $NUMER_OF_POST_COLUMNS = 3;

    to

    Code:
    $NUMER_OF_POST_COLUMNS = 4;

    2) Edit /wp-content/themes/wp_hot_clinic/style.css and change this part:

    Code:
    .cols-3 .item {
    width: 298px;
    margin-right: 30px;
    background: #fff;
    float: left;
    }

    .cols-3 .column-3.item {
    margin-right: 0;
    }

    to this:

    Code:
    .cols-4 .item {
    width: 222px;
    margin-right: 20px;
    background: #fff;
    float: left;
    }

    .cols-4 .column-4.item {
    margin-right: 0;
    }

    Regarding the second part of your post, I don’t understand what “recent article” you are mentioning. The 3 posts on the front page are the most recent posts.

    Are you working with WordPress?

    Thanks

    #1805
    jeff fortier
    Participant

    My mistake I meant recent post.
    Would there be a way to have the 4th post to be on top of the 3 posts and taking the entire width of the 3 posts.

    #1806
    milos
    Moderator

    Unfortunately, something like that is not possible with WordPress version of this theme.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.