Re: Adding new position for a recent article display

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

#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