Only one post shown on "Latest News" Widget

Hello,
I need help on how this widget.
I want to show only one recent post.
I set the file fp-latest-news.php ‘posts_per_page’ => 1,.
Widget shows me Although only one post, but graphically it is still set to 3 columns.

screen

You do not know how to fix it?
Thanks

Hello there,

Try adding the below CSS code into your site’s additional CSS option under Appearance > Customize > Additional CSS.


.widget_sydney_latest_news .blog-post{
  float: none;
  margin-left: auto;
  margin-right: auto;
}

Regards,
Kharis

It works, but not how I wanted.
Now it’s in the middle, but I want to make it through the whole block.

Hello there,

I guess you want to do it on smaller screen. If so, you would add this code:


@media only screen and (max-width:768px){
	
  .widget_sydney_latest_news .blog-post{
      width: 100%;
  }	
	
}

Regards,
Kharis

where I please add this text to add it to custome css, it has no effect

It works thx

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis