- This topic has 9 replies, 2 voices, and was last updated 3 years, 6 months ago by David.
-
AuthorPosts
-
September 23, 2020 at 10:52 pm #1456372Mohamed
Hi,
I want to display latest posts in the home page or archive page like that
https://prnt.sc/umv4z72-Is there anyway to add an icon to every category?
3-What is best post views plugin you advise me (keep performance and don’t use a huge CPU recources)?September 24, 2020 at 2:04 am #1456546DavidStaffCustomer SupportHi there,
1. that would require custom CSS – if you can share a link to your site i cant take a look to see if we can help with that.
2. Not easily done – if i can see the site i may be able to suggest an option.
3. To display Post lists on static pages or inside posts we recommend WP Show Posts https://wordpress.org/plugins/wp-show-posts/
September 24, 2020 at 6:26 am #1456846MohamedHi David,
The site is attached and it’s beginningSeptember 24, 2020 at 7:56 am #1457133DavidStaffCustomer SupportCan you add a Featured Image to your post.
And set the Display excerpt and excerpt length in Customizer > Layout > Blog:https://docs.generatepress.com/article/blog-content-layout/
Once thats done i can look at the CSS required
September 24, 2020 at 8:20 am #1457198MohamedI did it, but excerpt in home page not activated
September 24, 2020 at 10:26 am #1457379DavidStaffCustomer SupportNow try adding this CSS:
body:not(.single) .post-image img { width: 100%; height: 240px; object-fit: cover; } body:not(.single) .post .inside-article { padding: 20px 20px 0 20px; border: solid 2px #ddd; border-radius: 0 0 10px 10px; overflow: hidden; display: flex; flex-direction: column; } body:not(.single) .post-image { margin: -20px -20px 20px -20px !important; } body:not(.single) .post-image img { width: 100%; height: 240px; object-fit: cover; } .entry-summary { order: 10; } .read-more-container a.read-more { width: 100%; margin-top: 20px; margin-right: -20px !important; padding-top: 20px; color: #a7cb38; background-color: #fff; border-top: 1px solid #ddd; display: flex; justify-content: space-between; } .read-more-container a.read-more:after { content: ">"; font-size: 20px; font-weight: bold; }
September 24, 2020 at 2:24 pm #1457647MohamedPerfect
But it’s working on categories pages not on the home pageSeptember 25, 2020 at 1:53 am #1458103DavidStaffCustomer SupportHow did you add the CSS?
September 25, 2020 at 4:42 am #1458298MohamedI added it to css style file and it’s working fine on the archive page but the excerpt didn’t displayed in the HomePage!
How can I display it by the customizer?September 25, 2020 at 5:44 am #1458367DavidStaffCustomer SupportCan you try disabling other plugins or remove any custom functions as the home page should reflect output the same layout and content as the category archives.
-
AuthorPosts
- You must be logged in to reply to this topic.